API REFERENCE

selectRows

Sets selection for specified row IDs. Use stable IDs, not display indices.

What does this API do?

Sets selection for specified row IDs. Use stable IDs, not display indices.

Exact input and result types

typescript
selectRows(ids: Array<string | number>): Promise<void>
ArgumentsRequiredType
idsRequiredArray<string | number>

The return type is Promise<void>.

Usage flow

After registering and initializing the Grid element, call grid.selectRows(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

Feature explanations and examples