API REFERENCE
forEachRow
Runs a callback for each row object. Use forEachDisplayedRow when display order matters.
What does this API do?
Runs a callback for each row object. Use forEachDisplayedRow when display order matters.
Exact input and result types
forEachRow(callback: (row: GridRowRef<GridData, unknown>) => void): Promise<void>| Arguments | Required | Type |
|---|---|---|
| callback | Required | (row: GridRowRef<GridData, unknown>) => void |
The return type is Promise<void>.
Usage flow
After registering and initializing the Grid element, call grid.forEachRow(…). 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 and events
Grid APIs read or change the current state; events report the results of user interactions or data changes. Combine them to build save buttons, detail panels, and change histories.