Kendo Grid Retrieving Model Values RRS feed

  • Question

  • User-2073689554 posted

    I have Kendo grid and have a checkbox placed on top of grid, now grid is suppose to change data on basis of checkbox click, without making grid refresh.

    Additionally tried bellow code in onCheck(e) function, but not getting updated model values -

    var grid = $("#grid").data("kendoGrid");
    var gridData = grid.dataSource.view();

    Hence, here on onCheck(e) function, i need to get something like "e.model" so that i can get my values for e.g. "e.model.USER_ID"

          .HtmlAttributes(new { onchange = "onCheck();" })
        function onCheck(e) {
          var grid = $("#grid").data("kendoGrid");
           var gridData = grid.dataSource.view();
         // gridData - not getting updated model data.
         // Here e is coming as "undefined"
        // I need something => e.model  //e.model.USER_ID


    Tuesday, January 1, 2019 1:44 PM

All replies