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

[Solved] Get column value from parent table in a hierarchical grid using javascript

1 Answer 201 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Polaris431
Top achievements
Rank 1
Polaris431 asked on 02 Sep 2009, 01:20 PM
I have a hierarchical grid - the Master table and a details table. When the user expands a row in the parent table the details table is loaded. The details table has an Add New Record button. When this is pressed, I need to obtain the value of some column in the parent row that was expanded. This must be done on the client-side using javascript. Note: the parent row is not selected, it's just expanded, so I cannot rely upon obtaining the selected row. I could not find any API method for the client side on how to obtain a value in the parent row. Any suggestions?

Thanks
Johann

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 07 Sep 2009, 07:57 AM
Hello,

When an action is triggered within a detail table, for example a row is selected or clicked, you can get a reference to the master item, by using the get_parentRow() method for the detail table client side object.
I hope this gets you started properly.

Regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Polaris431
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or