Select All Checkbox Jquery
This jQuery script will allow a select all checkbox in the header to toggle the check boxes in an editable grid. Rename NotifySelectAll to the toggle checkbox id and NotifyChk to the id of the check boxes in the grid. Note: the jQuery select is looking for ID’s that end with specified id. So if there is something prefixed to the ID, it should still work.
<script>
$(document).ready(function () {
$("form input:checkbox[id$='NotifySelectAll']").change(function () {
var $input = $(this);
$("form input:checkbox[id$='NotifyChk']").prop("checked", $input.prop( "checked" ));
});
});
</script>