Hi,
I have a grid with command buttons on each row, when I click a command button i link to another page use the querystring/Viewbag to remember the page number until I come back to the page with the grid.
When I return to the page with the grid I can see that I am indeed using the correct page number so in document ready function I use:
But it just displays page 1 irrespective of the page I have stored in @ViewBag.Page
Is there some way that I can force the grid or data source to display the page I want it to when the document loads, after that the page will be set from the pager controls on the grid.
Many thanks in advance
I have a grid with command buttons on each row, when I click a command button i link to another page use the querystring/Viewbag to remember the page number until I come back to the page with the grid.
When I return to the page with the grid I can see that I am indeed using the correct page number so in document ready function I use:
var grid = $("#grid").data("kendoGrid");
grid.dataSource.page(@ViewBag.Page);
But it just displays page 1 irrespective of the page I have stored in @ViewBag.Page
Is there some way that I can force the grid or data source to display the page I want it to when the document loads, after that the page will be set from the pager controls on the grid.
Many thanks in advance