Kendo Grid 2004 Q2 item selection problems

2 posts, 0 answers
  1. Dan
    Dan avatar
    29 posts
    Member since:
    Oct 2013

    Posted 04 Nov 2014 Link to this post

    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? 
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 06 Nov 2014 Link to this post

    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!
     
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top