API REFERENCE
applyTransaction
Adds, updates, and removes source rows by stable ID. Inspect results separately from app server saving.
What does this API do?
Adds, updates, and removes source rows by stable ID. Inspect results separately from app server saving.
Exact input and result types
applyTransaction(transaction: RowDataTransaction<GridRow>, label?: string, opts?: { source?: GridEditSource; origin?: unknown }): Promise<ApplyRowTransactionResult<GridRow>>| Arguments | Required | Type |
|---|---|---|
| transaction | Required | RowDataTransaction<GridRow> |
| label | Optional | string |
| opts | Optional | { source?: GridEditSource; origin?: unknown } |
The return type is Promise<ApplyRowTransactionResult<GridRow>>.
Usage flow
After registering and initializing the Grid element, call grid.applyTransaction(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.
Read related types
Feature explanations and examples
- Data updates
Replace rowData when receiving a complete query result. For partial changes, pass add, update, and remove to applyTransaction. Updates match through getRowId, not display positions.