How to set all checkbox value from column header checkbox, I am having following function on click for column header checkbox having argument column header name & checkbox object.
function handleClick(cb, sName) {
var table= $("#GridName");
$('td input:checkbox',table).prop('checked',cb.checked);
}
cb is checkbox instance. This function working but setting value in all checkbox for all column in grid, how to add filter for grid if sName is column name.
Aucun commentaire:
Enregistrer un commentaire