Drag and Drop the Tree

Tutorial » Drag and Drop the Tree

When using tree plugin in an application, the drag and drop feature is required to allow users to change the node position. To enable the drag and drop operation, all you need to do is to set the 'dnd' property to true for tree plugin.

Create Tree

When drop is made in one of the tree node, the 'onDrop' event will be triggered, you should do some more operations such saving the state of node to remote server etc.

Download the EasyUI example:

easyui-tree-demo.zip