This is a migrated thread and some comments may be shown as answers.
Kendo Grid 2004 Q2 item selection problems
1 Answer 3 Views
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 05 Nov 2014, 01:33 AM
My old code:
      
function updateReconcileCB(cb) {
    var grid = $("#Receipts").data("kendoGrid");
    var di = grid.dataItem(grid.select());
    di.selected = cb.checked;
}


Was working just fine
however, since updating to: Kendo 2014.2.1008
This code works sporadically and although the Checkboxes get checked visually this code throws an error and the grid line is not recognized as checked/selected??

how Do I modify the code to fix?
or do I just revert back to old Kendo scripts? 

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 06 Nov 2014, 01:38 PM
Hi Dan,

In general jQuery attr() method should be used for checking a checkbox. However you also need to update the dataItem as well. So in your case just add code for handling the actual checkbox checking. Here is an example:

http://dojo.telerik.com/eJIXO

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Asked by
Dan
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or