Refresing the rad grid to the first page

6 posts, 0 answers
  1. Kunal
    Kunal avatar
    14 posts
    Member since:
    Dec 2008

    Posted 18 Dec 2008 Link to this post

    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

  2. Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 18 Dec 2008 Link to this post

    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.
  3. Jeffrey
    Jeffrey avatar
    6 posts
    Member since:
    Jan 2019

    Posted 04 Jan Link to this post

    is it possible to do it without rebinding? because it slows my program?
  4. Attila Antal
    Admin
    Attila Antal avatar
    203 posts

    Posted 04 Jan Link to this post

    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.
  5. Jeffrey
    Jeffrey avatar
    6 posts
    Member since:
    Jan 2019

    Posted 04 Jan in reply to Attila Antal Link to this post

    Thanks for you quick reply, i really appreciate it.
  6. Attila Antal
    Admin
    Attila Antal avatar
    203 posts

    Posted 04 Jan Link to this post

    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.
Back to Top