Refresh Datasource of Kendo Grid If Server side event is off.
function UpdateUPGridSource(RoleID) {
var grdUP = $("#grdUserPermission").data("kendoGrid");
//Set url property of the grid data source
grdUP.dataSource.transport.options.read.url = '/Users/UserPermission/GetModuleParentIDList?inUserID=' + RoleID;
//Read data source to update
grdUP.dataSource.read();
}
Refresh Datasource of Kendo Grid If Server side event is on Then Just need to do :
$('#grdUserPermission').data("kendoGrid").dataSource.read();
Change Page Index of Kendo Grid with Javascript
grid.dataSource.query({ page: 3, pageSize: 20 });
or
grid.dataSource.page(3);
No comments:
Post a Comment