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

[Solved] Client selection gets lost on postback

3 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Malibongwe
Top achievements
Rank 1
Malibongwe asked on 18 Feb 2010, 12:05 PM
Hi Guys,

 I am having a problem where I have a grid that has client selection enabled. What happens in this grid is that when I select an item or record in the grid, the client selection gets lost on post-back.I have set the EnablePostBackOnRowClick property to true. If I turn this property to false, the selection is possible, but then there is o postback.

What could be causing this?

regards

Malibongwe

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 18 Feb 2010, 12:18 PM
Hello Malibongwe,

RadGrid loses its current selection when the data is sorted, a new group or filter is added, or when the current page changes. If you want the client-side selection to persist across these events, please review the following help article:
http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html

Regards,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Malibongwe
Top achievements
Rank 1
answered on 18 Feb 2010, 01:23 PM
Hi Pavlina,

 Thanks for your very prompt reply. I have implemented the solution on that link. However, when I trap the server side SelectedIndexChanged event of the grid, there are no selected indexes. The selected items collection also has nothing.

How could I ensure that I trap the selected items on the server side?

Best regards

Malibongwe


0
Pavlina
Telerik team
answered on 18 Feb 2010, 04:15 PM
Hi Malibongwe,

Please, refer to the following forum thread for more information about how to achieve the desired functionality:
http://www.telerik.com/community/forums/aspnet-ajax/grid/getting-selected-row-index.aspx

I hope this helps.

All the best,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Malibongwe
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Malibongwe
Top achievements
Rank 1
Share this question
or