Reputation: 14327
I am using Kendo UI web Grid on ASP.NET MVC 4 Application. I noticed a strange problem in it.
I have a grid with about 72 records, which will show only 20 records per page size. you can click on pagination to see next 20 records.
after you click on next page 2 you can see next 20 records of 72.
Here I have a jQuery call to refresh grid.
var grid = $("#myGrid").data("kendoGrid");
grid.dataSource.read();
I noticed the problem is, when I use jQuery to read the grid again.
It is not resetting [DataSourceRequest] DataSourceRequest request
and that is creating the problem.
How can i fix this.
Solution following @paris below code resolved the issue.
var grid = $("#myGrid").data("kendoGrid");
grid.dataSource.page(1);
grid.dataSource.read();
Upvotes: 1
Views: 1401
Reputation: 131
Try putting grid.dataSource.page(1);
before the read()
call if you don't mind refreshing the grid back to page one.
Upvotes: 3