RowDragEventArgs

Provides event arguments for row drag-and-drop reordering events. Carries dragged records, source and target indices, the native event, and row elements.

Props

The following table outlines the props for the RowDragEventArgs:

NameTypeDefaultDescription
data
T[]
-

Data records associated with the dragged rows.

dropIndex
number
-

Zero-based target row index, or -1 when no valid target exists.

fromIndex
number
-

Zero-based source row index.

originalEvent
MouseEvent
-

Native mouse event associated with the drag action.

rows
Element[]
-

DOM row elements included in the drag operation.

target
Element | null
-

Row element under the pointer at the time of the event.