bind your grid check box column field
{ field: "SelectStatus", width: "10%",
template: "<input type='checkbox' #= SelectStatus ? checked='checked':'' # class='chkbx' />" }
use the script:
// Customer grid check event
$(function () {
$('#CustomerInfoKendoGrid').on('click', '.chkbx', function () {
var checked = $(this).is(':checked');
var grid = $('#CustomerInfoKendoGrid').data().kendoGrid;
var dataItem = grid.dataItem($(this).closest('tr'));
dataItem.set('SelectStatus', checked);
})
})
Comments
Post a Comment