menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DragEventArgs<TValue> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DragEventArgs<TValue>

    Provides information about the Drag, Drag Start/End event.

    Inheritance
    System.Object
    DragEventArgs<TValue>
    Namespace: Syncfusion.Blazor.Kanban
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DragEventArgs<TValue> : Object
    Type Parameters
    Name Description
    TValue

    The type of data source for the Kanban board.

    Remarks

    This class offers details about drag operations and their associated data within the Kanban board.

    Constructors

    DragEventArgs()

    Declaration
    public DragEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether the drag action can be canceled.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the drag action can be canceled; otherwise, false.

    Remarks

    Use this property to prevent drag operations between cards.

    Data

    Gets or sets the data associated with the drag event.

    Declaration
    public List<TValue> Data { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<TValue>

    A list of type TValue representing the dragged items.

    Remarks

    This property contains the item data being moved during the drag operation.

    DragIndex

    Gets or sets the index of the dropped element.

    Declaration
    public int DragIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    An integer value representing the index of the element where it was dropped.

    Remarks

    The index aids in rearranging the elements after a drag operation completes.

    IsExternal

    Gets or sets a value indicating whether the drop is external to the Kanban component.

    Declaration
    public bool IsExternal { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the drop is from an external source; otherwise, false.

    Remarks

    This property determines if the source of the dragged item is outside the current Kanban board.

    Left

    Gets or sets the client X coordinate of the target element.

    Declaration
    public double Left { get; set; }
    Property Value
    Type Description
    System.Double

    A double value representing the X coordinate of the target element.

    Remarks

    Use this property for precise placement of elements following a drag-and-drop operation.

    PreviousCardData

    Gets or sets the data of the previous card.

    Declaration
    public List<TValue> PreviousCardData { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<TValue>

    A list of type TValue containing the data of the card prior to the drag operation.

    Remarks

    This property is used to maintain card states before the drag-and-drop transformation.

    Top

    Gets or sets the client Y coordinate of the target element.

    Declaration
    public double Top { get; set; }
    Property Value
    Type Description
    System.Double

    A double value representing the Y coordinate of the target element.

    Remarks

    This property assists with positioning elements during and after a drag operation.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved