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

Grid, client-side selection, server-side detection

1 Answer 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 27 Feb 2009, 09:15 PM
Basically I want to have a check box in a grid that works as selection and want sorting not to clear the selection.
Then I want to be able to do a foreach through the grid and determine what things are selected when a postback is caused by something else.

Someone directing me towards the help that shows how to maintain selection during sort. I like the clientside but can't figure out how to get to that info on postback in the codebehind. Is this possible?

The other option is to do it the server side way but that uses two buttons that say Select and Unselect and i need to use a checkbox.

So I am not too particular on which way to do it but is either possible and how.

Thanks

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 03 Mar 2009, 12:13 PM
Hello Dan,

How to persist the client/server selection in RadGrid for ASP.NET AJAX you can see from the following topics in the product documentation:

http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html
http://www.telerik.com/help/aspnet-ajax/grdpersistselectedrowsonsorting.html

To traverse the selected items in the control on postback/ajax request, loop through the RadGrid's SelectedItems server collection.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Dan
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or