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

[Solved] Getting binded DataItem for selected row in RadGrid

1 Answer 269 Views
Grid
This is a migrated thread and some comments may be shown as answers.
IT-Team
Top achievements
Rank 1
IT-Team asked on 16 Jul 2013, 07:47 AM
My RadGrid  bonded to a list collection, but bonded no to all fields. Is there any way to get another field from DataMember bonded to exact row which user has selected.

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 19 Jul 2013, 06:27 AM
Hello Pavel,

To achieve the desired functionality you can add the fields from the data source into the RadGrid.MasterTableView.DataKeyNames or RadGrid.MasterTableView.ClientDataKeyNames collections. Then you can get the values for the corresponding rows via DataItem.GetDataKeyValue on server side or dataitem.getDataKeyValue on the client.

I hope this helps.

Regards,
Radoslav
Telerik
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 the blog feed now.
Tags
Grid
Asked by
IT-Team
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or