We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Cut-and-paste a node

I have a large tree with many levels and when my tree is fully expanded and I have to move a node from the bottom of the tree to the top, it is both challenging and painful to navigate up and down the tree to drop the node I am trying to move.  Is it possible to cut-and-paste a node to a parent/sibling node anywhere in the tree?

Thanks in advance.



3 Replies

MS Muralishankar Sundaram Syncfusion Team August 19, 2014 11:45 AM UTC

Hi Solymars,

 

Thank you for using syncfusion products.

 

By using the given sample, you can easily make cut and paste operation on the treeview, with the help of the given JavaScript method. We have used the context menu control to perform cut and paste operations. Use the below given information to perform cut and paste operations.

 

Action - Description: 

  1. Select the specific treeview node press right click and select cut option in the context menu (Selected node and its child nodes will be removed and saved in a temporary variable).
  2. Select the specific treeview node press right click and select paste option in the context menu (The saved nodes will be add as child of the current selected node). 


Regards,

Muralishankar.

 


Attachment: Treeview_9ae15054.zip


SO solymars September 4, 2014 12:14 PM UTC

Thank you, I will give this a try.


GA Gurunathan A Syncfusion Team September 8, 2014 03:34 AM UTC

Hi Solymars,

Thanks for the update.

 

We will wait to hear from you.

 

Please let us know if you have further queries.

 

Thanks,

Gurunathan.


Loader.
Live Chat Icon For mobile
Up arrow icon