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

[Solved] Get reference to t-master-row in child grid

1 Answer 60 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.
Bob
Top achievements
Rank 1
Bob asked on 31 May 2012, 07:56 PM
We have a hierarchical grid and when a user makes a change to a value in the child grid we want to update the parent (master) row client side.

Is there an easy way to get a reference to that row in the data("tGrid") of the child grid? I didn't see a way. I am currently using jQuery to drill up using closest(".t-detail-row") and then .prev("tr"). It works, but seems a bit of a kludge. 

Is there a better way?

BOb

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 04 Jun 2012, 10:28 AM
Hi Bob,

For performance reasons we do not instantiate separate client objects for the Grid rows, nor provide advanced traversal methods, so using DOM operations is OK in your case.

Greetings,
Dimo
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
Bob
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or