alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class TreeGridQueryRowDraggingEventArgs

    Provides the data for the QueryRowDragging event of the SfTreeGrid row drag and drop operation.

    Inheritance
    object
    EventArgs
    TreeGridQueryRowDraggingEventArgs
    Inherited Members
    EventArgs.Empty
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Maui.TreeGrid
    Assembly: Syncfusion.Maui.TreeGrid.dll
    Syntax
    public class TreeGridQueryRowDraggingEventArgs : EventArgs

    Constructors

    TreeGridQueryRowDraggingEventArgs(int, int, IList<TreeNode>, IList<object>, TreeNode?, TreeGridDropPosition, Point?, TreeGridDragAction, bool, bool, object?, object?)

    Initializes a new instance of the TreeGridQueryRowDraggingEventArgs class.

    Declaration
    public TreeGridQueryRowDraggingEventArgs(int from, int to, IList<TreeNode> draggingNodes, IList<object> draggingRecords, TreeNode? targetNode, TreeGridDropPosition dropPosition, Point? position, TreeGridDragAction dragAction, bool canAutoScroll, bool cancel, object? rowData, object? currentRowData)
    Parameters
    Type Name Description
    int from

    The row index where the drag started.

    int to

    The row index of the current drop target.

    IList<TreeNode> draggingNodes

    The tree nodes being dragged.

    IList<object> draggingRecords

    The underlying records being dragged.

    TreeNode targetNode

    The tree node under the drag view.

    TreeGridDropPosition dropPosition

    The resolved drop position relative to the target node.

    Point position

    The current pointer position.

    TreeGridDragAction dragAction

    The current drag action.

    bool canAutoScroll

    Indicates whether auto-scrolling is enabled for the drag.

    bool cancel

    Indicates whether the drag operation should be canceled.

    object rowData

    The dragged row data.

    object currentRowData

    The current row data under the drag location.

    Properties

    CanAutoScroll

    Gets or sets a value indicating whether the grid auto-scrolls while the drag view is near the grid boundaries.

    Declaration
    public bool CanAutoScroll { get; set; }
    Property Value
    Type
    bool

    Cancel

    Gets or sets a value indicating whether the drag operation should be canceled.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type
    bool
    Remarks

    At DragStarted the drag is canceled entirely; at Dragging the current target is marked invalid; at DragEnded the drop is canceled and the view is left unchanged.

    CurrentRowData

    Gets the current row data under the drag location.

    Declaration
    public object? CurrentRowData { get; }
    Property Value
    Type
    object

    DestinationParentNode

    Gets the tree node that will be the parent of the dragged nodes after the drop is resolved.

    Declaration
    public TreeNode? DestinationParentNode { get; }
    Property Value
    Type
    TreeNode
    Remarks

    This is a tree grid delta over the data grid surface: handlers do not need to recompute the tree to reject a level move.

    DraggingAction

    Gets the current action of the drag operation: started, dragging or ended.

    Declaration
    public TreeGridDragAction DraggingAction { get; }
    Property Value
    Type
    TreeGridDragAction

    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>

    DraggingRecords

    Gets the underlying records being dragged.

    Declaration
    public IList<object> DraggingRecords { get; }
    Property Value
    Type
    IList<object>

    DropLevel

    Gets the level at which the dragged nodes will land after the drop is resolved.

    Declaration
    public int DropLevel { get; }
    Property Value
    Type
    int

    DropPosition

    Gets the resolved drop position relative to the target node: above, below or as a child.

    Declaration
    public TreeGridDropPosition DropPosition { get; }
    Property Value
    Type
    TreeGridDropPosition

    From

    Gets the row index where the drag operation started.

    Declaration
    public int From { get; }
    Property Value
    Type
    int

    Position

    Gets the current drag-view position.

    Declaration
    public Point? Position { get; }
    Property Value
    Type
    Point

    RowData

    Gets the dragged row data.

    Declaration
    public object? RowData { get; }
    Property Value
    Type
    object

    SourceLevel

    Gets the source node level for the drag operation.

    Declaration
    public int SourceLevel { get; }
    Property Value
    Type
    int

    SourceNode

    Gets the source node for the drag operation.

    Declaration
    public TreeNode? SourceNode { get; }
    Property Value
    Type
    TreeNode

    TargetNode

    Gets the tree node under the drag view.

    Declaration
    public TreeNode? TargetNode { get; }
    Property Value
    Type
    TreeNode

    To

    Gets the row index of the current drop target.

    Declaration
    public int To { get; }
    Property Value
    Type
    int
    Remarks

    The index is a view index and changes when the visible tree changes through expand, collapse, sort or filter operations.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved