API REFERENCE

setDetailRowExpanded

Expands or collapses a detail panel by stable parent row ID.

What does this API do?

Expands or collapses a detail panel by stable parent row ID.

API for Pro features: Built-in master / detail

Exact input and result types

typescript
setDetailRowExpanded(rowId: string | number, expanded: boolean): Promise<void>
ArgumentsRequiredType
rowIdRequiredstring | number
expandedRequiredboolean

The return type is Promise<void>.

Usage flow

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

Feature explanations and examples