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

[Solved] Keeping track of checkbox state without postbacks

1 Answer 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dave Hollen
Top achievements
Rank 1
Dave Hollen asked on 25 Jan 2010, 09:50 PM
Hello,

I have a RadGrid with Paging enabled.  On this grid, I have a GridClientSelectColumn.  Currently, on Client Side, I am using Javascript to track which rows have been selected (so that if the user pages through the grid and returns to an earlier page, they will still see the checkboxes that they originally checked).

The issue that I am running into is, I need to also have a list of selected items for use on the server side.  However, I do not want to perform a post back on the radgrid each time a row is selected or unselected. 

Is there a way to do this without having to perform a post back, such as getting my object from javascript and throwing it into Server side somewhere? 

Thanks,
Dave

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 28 Jan 2010, 05:47 PM
Hi Dave,

 RadGrid features a SelectedIndexes and SelectedItems collection that is available on each post back to the server. Therefore, you can safely select any items in any way on the client and when you finally post back, the data related to the selection will be promptly updated and available in the two public collection properties mentioned above.

I hope this helps.

Regards,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Dave Hollen
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or