Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeListOptionsDragAndDrop.CanCloneNodesOnDrop Property

Gets or sets whether end-users are allowed to clone nodes using drag-and-drop.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool CanCloneNodesOnDrop { get; set; }

#Property Value

Type Default Description
Boolean false

true, to allow end-users to clone nodes using drag-and-drop; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to CanCloneNodesOnDrop
TreeList
.OptionsDragAndDrop .CanCloneNodesOnDrop

#Remarks

If the CanCloneNodesOnDrop option is set to true, nodes can be cloned when an end-user moves them within the TreeList or between TreeList controls using drag-and-drop. The CTRL key needs to be pressed to enable copy mode during node dragging.

To allow nodes to be copied when performing drag-and-drop from a source TreeList control to a destination TreeList control, the CanCloneNodesOnDrop property must be enabled for the destination TreeList control. See TreeList.CustomizeNewNodeFromOuterData topic for more information.

Node drag-and-drop operations can be enabled with the TreeListOptionsDragAndDrop.DragNodesMode option.

See Also