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

[Solved] How to get parent row data from OnSelect of Child

1 Answer 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jignesh
Top achievements
Rank 1
Jignesh asked on 05 Jan 2012, 09:33 PM
I have a customer-Account master/details grid.
The master grid has customerId that I need in OnSelect event of child grid (account Grid).

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 06 Jan 2012, 01:13 PM
Hello Jignesh,

To get the value of some property of the master grid you can use the following approach:
$("#CustomerGrid").data('tGrid').dataItem($(this).parent().parent().prev()).CustomerID

I hope this helps.

Regards,
Petur Subev
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
Jignesh
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or