Skip to end of metadata
Go to start of metadata

Powered by Intersoft's unique DragDrop Framework 2007 architecture, you can enjoy pixel-perfect sensitivity of drag-and-drop in WebTreeView control. This can be done easily by setting the AllowDragDrop property to True.

There are four properties that you can set in the DragDropSettings to customize the node drag drop behaviors:

  • 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.

WebTreeView.NET includes comprehensive drag and drop support with ability to combine four behaviors at once. For instance, you can enable both AllowLeafDrop and AllowSiblingDrop to enable child move and item reposition. You can also enable AllowChildDrop, AllowSiblingDrop and AllowLeafDrop at once to create more powerful drag and drop behavior.
While you can easily enable the drag and drop feature at global level by setting the AllowDragDrop property to True, you also have the flexibility to control the drag and drop ability at node level. For instance, you can specify individual node to disallow the drag behavior by setting the AllowDrag property of the WebTreeViewNode to False. The same goes true for AllowDrop property. 
The drag and drop feature also works perfectly in conjunction with multiple selection feature. You can select multiple nodes by using Ctrl+Click approach, or Ctrl+Shift for batch selection. You can then initiate drag operation by dragging one of the selected node.