WebTreeView provides feature to allow user performing Drag-and-Drop.
This topic will show you how to enable basic Drag-and-Drop.
To enable basic Drag-and-Drop
- Right click on WebTreeView instance and choose WebTreeView.NET
Designer.
- Go to WebTreeView's Properties and set AllowDragDrop to
True.
- Expand DragDropSettings. There are 4 properties you can set.
- AllowChildDrop : This property allows you to control a node’s drop
ability, set it to True and a node can be dropped on a child node. The default value
is False.
- AllowRootDrop : Setting this property to True to allow nodes to
be dropped on root node. The default value is False.
- AllowSiblingDrop : Setting this property to True to allow nodes
to be dropped on target’s sibling node. The default value is False.
- AllowLeafDrop : Setting this property to True to allow nodes to
be dropped into node which type is Leaf. Leaf type is the node without children.
The default value of this property is False.
- Run the project.