Class TreeGridRowDragDropController
Handles row drag and drop in a SfTreeGrid, supporting long-press drag start, pan move, and release end. Supports drop above, below, or as child following WPF SfTreeGrid behavior.
Inherited Members
Namespace: Syncfusion.Maui.TreeGrid
Assembly: Syncfusion.Maui.TreeGrid.dll
Syntax
public class TreeGridRowDragDropController
Constructors
TreeGridRowDragDropController(SfTreeGrid)
Initializes a new instance of the TreeGridRowDragDropController class.
Declaration
public TreeGridRowDragDropController(SfTreeGrid treeGrid)
Parameters
| Type | Name | Description |
|---|---|---|
| SfTreeGrid | treeGrid | The SfTreeGrid owning the controller. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when |
Properties
AutoExpandDelay
Gets or sets the dwell delay after which a collapsed drop target expands when CanAutoExpand is enabled. The default value is 3 seconds.
Declaration
public TimeSpan AutoExpandDelay { get; set; }
Property Value
| Type |
|---|
| TimeSpan |
CanAutoExpand
Gets or sets a value indicating whether a collapsed drop target expands after the drag view dwells
in the drop-as-child band for AutoExpandDelay. The default value is true.
Declaration
public bool CanAutoExpand { get; set; }
Property Value
| Type |
|---|
| bool |
DestinationParentNode
Gets the tree node that will be the parent of the dragged nodes after the current drop is resolved.
Declaration
public TreeNode? DestinationParentNode { get; }
Property Value
| Type |
|---|
| TreeNode |
DraggingNodes
Gets the tree nodes being dragged, carrying each node's whole descendant subtree with it.
Declaration
public IList<TreeNode> DraggingNodes { get; }
Property Value
| Type |
|---|
| IList<TreeNode> |
DropLevel
Gets the level at which the dragged nodes will land after the current drop is resolved.
Declaration
public int DropLevel { get; }
Property Value
| Type |
|---|
| int |
DropPosition
Gets the resolved drop position relative to the TargetNode.
Declaration
public TreeGridDropPosition DropPosition { get; }
Property Value
| Type |
|---|
| TreeGridDropPosition |
IsDragging
Gets a value indicating whether a row drag is currently in progress.
Declaration
public bool IsDragging { get; }
Property Value
| Type |
|---|
| bool |
TargetNode
Gets the tree node under the drag view.
Declaration
public TreeNode? TargetNode { get; }
Property Value
| Type |
|---|
| TreeNode |