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

Copy Treelist with recursive children

1 Answer 165 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Prasanna
Top achievements
Rank 1
Prasanna asked on 06 Jul 2015, 02:37 PM

I am trying to implement cut/copy/paste functionality, but i am not able to get it right with multiple recursive children.

Is there any way i can copy the root node with its children? 

I could not find any function in documentation to achieve the same.

I am using pushcreate function, to copy the object first changing its parentId & id and then add it to selected row.

I am able to achieve this with single child.

How do I achieve this incase of recursive children?

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 07 Jul 2015, 03:51 PM

Hello Prasanna,

 

Using the TreeListDataSource API you can get the children of given model. You can use it to iterate models recursively and gather the required data.

 

 

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