kendo grid column bindable checkbox is not working


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);  
     })  
   })  

Popular posts from this blog

WPF Crystal Report Viewer Using SAP

ASP.NET MVC razor SAP Crystal report