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

[Solved] Batch editing in hierarchy grid with local data

1 Answer 273 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DaveJ
Top achievements
Rank 1
DaveJ asked on 06 Jan 2015, 07:27 PM
Hi,

I'm having a hard time getting the grid to persist "dirty" state when setting up a hierarchy configuration. Take a look at the following fiddle: http://jsfiddle.net/amberite/4zx0yhdf/

Edit "Master row 2", and you will see the red triangle indicating that the row has been changed. Then, expand "Master row 1" and edit the child item "Child row 2". Finally, edit "Master row 1".

You will notice that if you follow these steps, there will be a red triangle on "Master row 1", then an additional red triangle on "Child row 2", but when the final edit happens on "Master row 1", the child grid loses its red triangles.

Why is this happening, and how can I persist the grid's dirty state?

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 08 Jan 2015, 04:06 PM

Hello Yaron,

Just use different instances of the observable array for the child and the master Grids. In other words create second scope variable

e.g.

http://jsfiddle.net/4zx0yhdf/1/

Regards,
Petur Subev
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
DaveJ
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or