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

Getting the Current Row that is being edited in the Update Function

1 Answer 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 27 Jun 2014, 05:36 PM
I have a hierarchy grid, what I need to do is when the update function is triggered in the sub grid get the row that is being edited and then based on that row get the corresponding master row.  I added a gist to my sub gird below.  

https://gist.github.com/sdanko11/e581b6216b573d13a327

If you look at the gist I need to be able to replace the masterRow variable within the update function, each time a row is edited for the correct values to go to the correct masterRow. 

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 01 Jul 2014, 03:11 PM
Hi Steve,

The code you have pasted looks correct. The masterRow should be the right one since it is captured in a closure. What is the problem when you run this code? What is the value of the masterRow variable inside the update function of the data source?

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