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

Retain selected items on sorting

2 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 29 Dec 2010, 04:04 PM
I have a grid that I would like to "remember" selected items (checkbox) when the user sorts the grid.  I found an article that shows how to do it client side (http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html) - as I want to avoid a postback every time they select an item.  It works very nicely - as long as the selected item in on the current page they are viewing.  If there are more than one page of records (ie showing 10 out of 200) - and the selected record is sorted to the end of the list and doesn't show, it forgets that it was checked.  The on row created doesn't seem to fire as the row really isn't created.  Is there a way around this?

Thank you in advance,
John

2 Answers, 1 is accepted

Sort by
0
Accepted
Vasil
Telerik team
answered on 03 Jan 2011, 12:18 PM
Hi John,

Please check this code library. I believe the selection is persisted properly in this project.

Best wishes,
Vasil
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
John
Top achievements
Rank 1
answered on 03 Jan 2011, 02:51 PM
Great - thank you very much- I will check it out.
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Vasil
Telerik team
John
Top achievements
Rank 1
Share this question
or