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

typescript
applyTransaction(transaction: RowDataTransaction<GridRow>, label?: string, opts?: { source?: GridEditSource; origin?: unknown }): Promise<ApplyRowTransactionResult<GridRow>>
ArgumentsRequiredType
transactionRequiredRowDataTransaction<GridRow>
labelOptionalstring
optsOptional{ 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