We have a batch edit grid with a sub batch edit grid. It all works fine unless we want to add a row. When we do the sub grid edits are lost.
Is this a bug, or not supported?
3 Answers, 1 is accepted
0
Alexander Valchev
Telerik team
answered on 30 Sep 2015, 11:00 AM
Hi Bob,
The behaviour is expected and occurs because the child grid is destroyed and re-created when its parent Grid rebinds.
Adding a new row to the parent triggers the rebind action.
That's essentially what I am doing. But, as you say a "workaround", it would be nice if a hierarchical data source is used so existing child records would be re-bound as well. At least, I think that's what the hierarchical datasource give you, maybe I don't fully understand it either.
What is the recommended way to find the rows that have child grids attached to them that need to be saved? My way seems quite a bit kludgy.
0
Alexander Valchev
Telerik team
answered on 02 Oct 2015, 10:43 AM
Hello Bob,
You may use role selector to select all Grid elements.
But, as you say a "workaround", it would be nice if a hierarchical data source is used so existing child records would be re-bound as well. At least, I think that's what the hierarchical datasource give you, maybe I don't fully understand it either.
Thank you for the feedback, I will forward your suggestion to the team for further discussions.
Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!