Unplanned
Last Updated: 30 Nov 2020 13:47 by Jose
Jose
Created on: 19 Nov 2020 16:55
Category: Kendo UI for Angular 2+
Type: Feature Request
0
Keep data temporarily in the treelist
Is there an example or documentation to manipulate a TreeList I want to add several rows in the TreeList and then save all the changes made in the component. Examples (AddChild and AddSibling). How could I handle that scenario where everything I do in the TreeList is stored temporarily until confirmed with a save button.
2 comments
Jose
Posted on: 30 Nov 2020 13:47
Thank you very much Svetlin. I will try to test with the example you sent me and I am communicating with you anything.
ADMIN
Svetlin
Posted on: 26 Nov 2020 12:01

Hi Jose,

Thank you for the logged feature request. Indeed, at the moment there isn't such example demonstrating the required batch editing functionality.

Let me provide a brief guideline as to how such functionality can be achieved. Generally, in the TreeList editing examples of our documentation like the following one a request is sent on each data operation such as adding or editing when the save button is clicked:

https://www.telerik.com/kendo-angular-ui/components/treelist/editing/reactive-forms/

What could be done in order to achieve a batch editing approach is instead of sending a remote request for each action (as soon as the save button is clicked) to store these in an array. Then there can be a separate "Save changes" button placed in the toolbar template of the TreeList and when it is clicked all actions that have been previously saved in the array can be implemented by sending the respective server requests. Such similar approach is demonstrated for the Kendo UI for Angular Grid at the following article:

https://www.telerik.com/kendo-angular-ui/components/grid/editing/in-cell-editing/

I hope the provided information helps. We will track the demand for this feature request and consider providing an example accordingly.

Regards,
Svetlin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.