This is a migrated thread and some comments may be shown as answers.

Refresing the rad grid to the first page

5 Answers 337 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kunal
Top achievements
Rank 1
Kunal asked on 18 Dec 2008, 01:14 PM

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

Sort by
0
Daniel
Telerik team
answered on 18 Dec 2008, 03:19 PM
Hello Kunal,

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
Attila Antal
Telerik team
answered on 04 Jan 2019, 03:58 PM
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
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
Attila Antal
Telerik team
answered on 04 Jan 2019, 04:21 PM
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
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.
Tags
Grid
Asked by
Kunal
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Jeffrey
Top achievements
Rank 1
Attila Antal
Telerik team
Share this question
or