Class RowDroppingEventArgs<T>
Provides information about the RowDropping event.
Inherited Members
Namespace: Syncfusion.Blazor.Grids
Assembly: Syncfusion.Blazor.dll
Syntax
public class RowDroppingEventArgs<T> : GridEventBaseArgs
Type Parameters
Name | Description |
---|---|
T | TValue of the grid component |
Constructors
RowDroppingEventArgs()
Declaration
public RowDroppingEventArgs()
Properties
Action
Gets the current action, either "Add" or "Delete", when dragging and dropping rows between two grids.
Declaration
public string Action { get; }
Property Value
Type | Description |
---|---|
System.String | A System.String value that represents the current action. Possible values are "Add" if the collection of row data was added to the destination grid, and "Delete" if the collection of row data was removed from the source grid. |
Remarks
The value of the Action
property will be null when performing drag and drop operations within the same grid.
This property is set and updated when the RowDropping event is triggered.
Cancel
Gets or sets a value indicating whether to cancel the row drop action.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true, if the drop action is cancelled; otherwise, false. The default value is false. |
Data
Gets the collection of row data associated with a dropped action in the grid.
Declaration
public List<T> Data { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T> | A System.Collections.Generic.List<> of row data associated with the dropped action. |
DropIndex
Gets the row index of the row associated with the drop action.
Declaration
public int DropIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | An integer value representing the index of the row associated with the drop action. |
FromIndex
Gets the row index of the row associated with the drag start action.
Declaration
public int FromIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | An integer value representing the index of the row associated with the drag start action. |
Target
Gets the target element's ID and its XPath.
Declaration
public DOM Target { get; }
Property Value
Type | Description |
---|---|
DOM |
|
TargetDimension
Gets the dimensions of the target element.
Declaration
public Dimension TargetDimension { get; }
Property Value
Type |
---|
Dimension |
Remarks
The TargetDimension contains the following dimensions:
- LeftThe left position of the target element.
- RightThe right position of the target element.
- TopThe top position of the target element.
- BottomThe bottom position of the target element.
- HeightThe height of the target element.
- WidthThe width of the target element.