Copy Treelist with recursive children

2 posts, 0 answers
  1. Prasanna
    Prasanna avatar
    1 posts
    Member since:
    Sep 2014

    Posted 06 Jul 2015 Link to this post

    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?

  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2284 posts

    Posted 07 Jul 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top