Hi All,
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.
Regards,
Kunal
5 Answers, 1 is accepted
0
Hello Kunal,
You can use the CurrentPageIndex property as in the code-snippet below:
Regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
You can use the CurrentPageIndex property as in the code-snippet below:
RadGrid1.CurrentPageIndex = 0; |
RadGrid1.Rebind(); |
Regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jeffrey
Top achievements
Rank 1
answered on 04 Jan 2019, 03:29 PM
is it possible to do it without rebinding? because it slows my program?
0
Hi Jeffrey,
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.
Kind regards,
Attila Antal
Progress Telerik
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.
Kind regards,
Attila Antal
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Jeffrey
Top achievements
Rank 1
answered on 04 Jan 2019, 04:00 PM
Thanks for you quick reply, i really appreciate it.
0
Hi Jeffrey,
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.
Kind regards,
Attila Antal
Progress Telerik
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.
Kind regards,
Attila Antal
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.