Intersoft Support Center

Enable Basic Drag-and-Drop

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

  1. Right click on WebTreeView instance and choose WebTreeView.NET Designer.
  2. Go to WebTreeView's Properties and set AllowDragDrop to True.
  3. 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.
  4. Run the project.
Previous Next