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

Detail Row Binding

3 Answers 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 25 Mar 2013, 07:09 PM
What would be the quickest route to binding a detailRow grid with the corresponding edit event of the parent grid row?

3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 27 Mar 2013, 02:47 PM
Hello Jeremy,

I do not understand the question, could you please elaborate and give an example scenario?

Kind Regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jeremy
Top achievements
Rank 1
answered on 27 Mar 2013, 02:59 PM
Peter,

I have a grid utilizing the detail template. I'm looking for the easiest way so that when I fire the edit event in the parent row, the detail row would go into edit mode as well (both inline). 

Thanks..
0
Petur Subev
Telerik team
answered on 27 Mar 2013, 03:28 PM
Hello Jeremy,

You can try to achieve this with some jQuery traversing and the edit event of the master Grid.

Attach fucntion to the edit evend of the master grid and:
  1. find the closest tr element related to the e.container (e is the argument object of the edit event)
  2. find the next detail row .k-detail-row
  3. find the inner .k-grid 
  4. get its client object
  5. use the editRow of client object

Detailed information about the client object of the Grid and its events is covered here.

Kind regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Jeremy
Top achievements
Rank 1
Share this question
or