Pagination Issue in Rag Grid

Thread is closed for posting
4 posts, 0 answers
  1. Dhaval
    Dhaval avatar
    11 posts
    Member since:
    Aug 2011

    Posted 30 Aug 2011 Link to this post

    Hi All,

    I have created a Rad Grid with Pagination and got a <Select All> button to select all items on current page.

    Now, everything works fine, except that when I navigate from 1 page to another then I want to get all selected items count of new page, but what I am getting is selected item of old page.
    Eg: I have selected 5 items of Page No. 1, now when I go to Page No. 2, I get selected items as 5 instead of 0.

    How to get selected items of clicked (new) page?

    Please help me regarding this issue!!!

    Dhaval
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 31 Aug 2011 Link to this post

    Hello Dhaval,

    RadGrid loses its current selection when the current page changes. How to persists selection across paging you can see from the following help articles:
    http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-on-sorting.html
    http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html

    Kind regards,
    Pavlina
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dhaval
    Dhaval avatar
    11 posts
    Member since:
    Aug 2011

    Posted 01 Sep 2011 Link to this post

    Thank Pavlina for your reply, but my issue is not regarding loss of current selection. It is working fine in my case.

    My issue is that when I navigate to another (new) page, I want to get selected items of that new page, but what I get is selected items of previous (old) page.

    Please help me on this.

    Dhaval
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 01 Sep 2011 Link to this post

    Hello Dhaval,

    In general, the grid creates and holds between postbacks only the items on the current page. Therefore, the behaviour you are describing is a bit in contrast with the fact that the grid has and is aware only with the items on the current page.

    Kind regards,
    Pavlina
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top