Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by R. Subramanian on Mar 25, 2008 01:13
open dhtmlx forum
dhtmlx tree Copy Paste

Hi,

I would like to know whether its possible to do copy a particular node in a tree (eg. Node X) and paste that node in one or more nodes (eg. Node A, Node B, Node C,...).

Can anyone help me.

Regards,
R. Subramanian
Answer posted by Support on Mar 25, 2008 02:43
The node inside tree can be moved by
            tree.moveItem(....

The "move" operation can be changed to "copy" by enabling "mercy drag" mode

           tree.enableMercyDrag(true)
           tree.moveItem(...             //will be a copy operation