SaveEvent

Event triggered at the start of a save operation. It provides access to the current and previous row data, and supports cancellation of the save based on validation or business rules.

Props

The following table outlines the props for the SaveEvent:

NameTypeDefaultDescription
action
string | ActionType
-

Specifies the type of action being performed, such as add, edit, or delete.

cancel
boolean
false

Flag indicating whether to cancel the save operation. Set to true to prevent the row from being saved.

data
T
-

Data object containing the latest values for the row being saved. Includes all fields that were modified or added during the edit session.

previousData
T
-

Data object representing the row's state before the current changes were applied. Useful for comparing values or implementing conditional save logic.

rowIndex
number
-

Index of the row being saved within the grid's data source. Useful for identifying the row position during update operations.