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

SelectedItems returning wrong values

1 Answer 16 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Herbert
Top achievements
Rank 1
Herbert asked on 03 Aug 2012, 05:46 PM
Have a couple of grids and buttons to add and remove values from the grids. Both use 'NeedDataSource' and Custom Paging to get data. All of these controls are in an asp:Panel with I have ajaxified with RadAjaxManager. When I select items in the one grid and click on the button to add them to the other grid, the NeedDataSource is being called before the Click event. I think this is causing different records to populate that grid because using ExtractValues on a SelectedItem is returning values that are different from what was selected. And, those values are appearing the the grid on PostBack. Is this standard behavior? How can I get the selected values and move the data before the data is repopulated with NeedDataSource?

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 08 Aug 2012, 07:01 AM
Hi Herbert,

If you are using Advanced data-binding the NeedDataSource event should not be called when the button is clicked. Could you paste your mark-up and code behind using the CODE FORMATTER tool of the ticket editor?

Greetings,
Tsvetoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Herbert
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or