FormCancelEvent

Event triggered when an edit or add form is cancelled. It provides access to the form state and row context, allowing cleanup or rollback logic to be executed.

Props

The following table outlines the props for the FormCancelEvent:

NameTypeDefaultDescription
data
T
-

Data object containing the current form state for the row. Includes field values at the time of cancellation.

formRef
RefObject<IFormValidator>
-

Reference to the form component used for editing or adding the row. Can be used to reset validation or perform cleanup actions.

rowIndex
number
-

Index of the row being edited or added in the grid's data source.