TreeListOptionsDragAndDrop.DropNodesMode Property
Gets or sets whether the SHIFT key needs to be pressed to insert a node before another node.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v18.2.dll
Declaration
[DefaultValue(DropNodesMode.Default)]
[XtraSerializableProperty]
public virtual DropNodesMode DropNodesMode { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DevExpress.XtraTreeList.DropNodesMode | **Default** | A value that specifies whether the SHIFT key needs to be pressed to insert a node before another node. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to DropNodesMode |
---|---|---|
WinForms Controls | ResourcesTree |
|
TreeList |
|
|
Reporting | XRDesignFieldList |
|
XRDesignReportExplorer |
|
Remarks
The DropNodesMode option affects the node drag-and-drop functionality when an end-user wants to drag-and-drop a node before another node. If the DropNodesMode property is set to Default or Standard, to insert a node before another node, an end-user needs to hold the SHIFT key down while moving over the target node. If the DropNodesMode property is set to Advanced, the SHIFT key needn’t be pressed. To insert a node above another node, an end-user should hover the dragged node over the upper half of the target node. When dragging-and-dropping over the lower half of the target node, the dragged node will be inserted as a child of the target node.
Node drag-and-drop can be enabled with the TreeListOptionsDragAndDrop.DragNodesMode property.