RowAddEvent
Describes the structure of the event triggered during a row add operation in the grid. Provides access to the new row's data and index, and supports conditional cancellation of the insertion process based on custom logic or validation requirements.
Props
The following table outlines the props for the RowAddEvent:
| Name | Type | Default | Description |
|---|---|---|---|
| cancel | boolean | false | Indicates whether the add operation should be cancelled. When set to true, the row insertion is prevented, allowing conditional control over grid updates based on business rules or validation outcomes. |
| data | T | - | The initial data object for the row being added. Represents the field values intended for insertion, allowing transformation, validation, or enrichment prior to committing the row to the grid. |
| rowIndex | number | - | The zero-based index at which the new row will be inserted in the grid's data source. Indicates the target position for the new entry, which can be used to determine placement logic or enforce ordering constraints. |