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

Setting a GridDataItem selected in client is not accessible in server

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rebecca Peltz
Top achievements
Rank 1
Rebecca Peltz asked on 06 May 2010, 04:50 PM
In an AJAX callback function we get a GridDataItem and set it to selected.  This appears to work ok in the client and is visible in the UI.  We even set a label in the client base on the values in the selected item with no problem.
Client side setting selected item:

itemsNY[i].set_selected(true); 
itemsNY[i] is a GridDataItem

On the server when we go to get the selected item from grid we are getting a previously set selected item, not the one set by our ajax callback code.  Is there anything we can do to figure this out?  We are working around it with hidden variable, but this is kind of messy.

Server side access to selected item:
radGrid.MasterTableView.DataKeyValues[radGrid.SelectedItems[0].ItemIndex] 

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 11 May 2010, 11:11 AM
Hello Rebecca,

Attached is a small sample where I tried to reproduce the issue in question but to no avail. Could you provide some directions on how to do so.

Thanks.

Best wishes,
Tsvetoslav
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
Rebecca Peltz
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or