I have RadComboBox inside A RadGrid Batch. I need to get DataKeyValue of the row on SelectedIndexChanged of the RadComboBox.
I tried to use : RadComboBox.Parent to get the GridDataItem also I tried RadComboBox.NamingContainer. Both methods didn't work.
Thanks for helping.
2 Answers, 1 is accepted
answered on 02 Sep 2015, 06:31 PM
Thank you for contacting us.
With Batch edit mode, the grid will generate only one editor for the entire column and that editor will be placed in the currently edited cell. Furthermore, handling server-side events of the editors is not supported scenario, because the editing is performed entirely on the client-side.
If you need to get reference to a data field value of the item, you should include that data field in the ClientDataKeyNames collection and handle the client-side change event of the RadComboBox. Within that event you can find the TR element corresponding to the item and through its id property you can find the client object of the GridDataItem and retrieve the data field that you are looking for.
Hope this helps.
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?
Telerik Feedback Portal
and vote to affect the priority of the items