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 whether it is Add
or Delete
action when drag and drop between two grids.
Declaration
public string Action { get; }
Property Value
Type | Description |
---|---|
System.String | Add,if the collection of row data added to the destination grid. Deleteif the collection of row data removed from the source grid. |
Remarks
The Action
will be null when we perform drag and drop within the grid and RowDropping event triggers.
Cancel
Gets or sets whether to cancel the row drop action. You can cancel and handle drop action in event handler also.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true, if drop action is cancelled. The default value is false. |
Data
Gets the collection of row data associated with dropped action in grid.
Declaration
public List<T> Data { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T> | A collection of row data associated with dropped action. |
DropIndex
Gets the row index of the row associated with drop action.
Declaration
public int DropIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Index of the row associated with drop action. |
FromIndex
Gets the row index of the row associated with drag start action.
Declaration
public int FromIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Index of the row associated with 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 target element's dimensions.
Declaration
public Dimension TargetDimension { get; }
Property Value
Type | Description |
---|---|
Dimension |
Remarks
The dimensions as follows,
Left
- Left position of the target element.
Right
- Right position of the target element.
Top
- Top position of the target element.
Bottom
- Bottom position of the target element.
Height
- Height of the target element.
Width
- Width of the target element.