Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Kendo Grid Retrieving Model Values

$
0
0

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"

@(Html.Kendo().CheckBox().Name("Check").HtmlAttributes(new{ onchange ="onCheck();"}).Label("Check")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}

Thanks


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>