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

Pagination Issue in Rag Grid

3 Answers 41 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Dhaval
Top achievements
Rank 1
Dhaval asked on 30 Aug 2011, 09:42 AM
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

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 31 Aug 2011, 08:27 AM
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 >>

0
Dhaval
Top achievements
Rank 1
answered on 01 Sep 2011, 08:30 AM
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
0
Pavlina
Telerik team
answered on 01 Sep 2011, 12:49 PM
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 >>

Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Dhaval
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Dhaval
Top achievements
Rank 1
Share this question
or