API REFERENCE

setRowGroupExpanded

Expands or collapses a row group by its actual group key. Missing groups and unchanged states are ignored.

What does this API do?

Expands or collapses a row group by its actual group key. Missing groups and unchanged states are ignored.

API for Pro features: Row grouping, built-in aggregation and group totals

Exact input and result types

typescript
setRowGroupExpanded(key: string | null, expanded: boolean): Promise<void>
ArgumentsRequiredType
keyRequiredstring | null
expandedRequiredboolean

The return type is Promise<void>.

Usage flow

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

Feature explanations and examples