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

Save all changes hierarchical grid

3 Answers 201 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sai
Top achievements
Rank 1
Sai asked on 05 Nov 2015, 03:14 PM

Hello, 

We are trying to build a 3 level grid with batch edit on all 3 grids. However we would like to [save changes] command button on the top level parent's toolbar to save all pending changes on all grids.  We were able to achieve this functionality as long as all child grids are still expanded. When we edit a record on child record and collapse, the below code does not work . 

 $(".k-widget.k-grid").each(function (index, value) {
                var grid = $(this).data("kendoGrid");
                grid.saveChanges();
                //grid.dataSource.sync();
            });     

I am attaching index.html for your reference

 

Thanks,

Sai

 ‚Äč

 

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 09 Nov 2015, 01:56 PM
Hi Sai,

I have tried to reproduce the problem here, but to no avail. Please check the the following sample and let me know if it helps:

http://dojo.telerik.com/UXOXo


Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Sai
Top achievements
Rank 1
answered on 09 Nov 2015, 03:16 PM

Hi Kiril, 

 

Thanks for the prompt clarification, however in your example , the update is single and not batch. 

I was referring to when it is batch edit, it requires the dirty child records to be still in expanded state. 

 

Thanks,

Sai

0
Kiril Nikolov
Telerik team
answered on 11 Nov 2015, 08:24 AM

Hello Sai,

 

It is still the same behavior see the updated example here:

 

http://dojo.telerik.com/UXOXo/3

 

If this does not reproduce the problem, edit the example to show the issue and we will happily investigate it.

 

Regards,
Kiril Nikolov
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
Sai
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Sai
Top achievements
Rank 1
Share this question
or