This is Kunal from Bangalore.
I am facing an issue to focus on the first page while reloading the grid.
For Ex. I go to the 3rd page of the grid and re-populate the grid.The new grid displayed is still focussed on the 3rd page.
Is there any way I can get the focus back on the 1st page.
Please send in suitable pointers.
5 Answers, 1 is accepted
You can use the CurrentPageIndex property as in the code-snippet below:
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
It may seem that all of the items from the DataBase are present in the grid, but in reality, only the items of the current page are rendered. Every time the page is changed, RadGrid is sending a request to the server to get the items for the next page specified and then it will do a rebind to refresh the view for the front end, and therefore, it is not possible to change the page without refreshing.
There are several ways that you can optimize the performance. They are described in the Grid Performance Optimizations and Optimizing Performance - RadGrid articles.
You might also consider using client-side widgets that could be a big improvement. Check out the Kendo UI Grid to see it in action.
You are welcome!
If you decide on choosing any of the options I have listed and you will require assistance, please let us know. We'll gladly assist you further.