API REFERENCE

collapseAllRowGroups

Collapses all collapsible row groups in the current data.

What does this API do?

Collapses all collapsible row groups in the current data.

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

Exact input and result types

typescript
collapseAllRowGroups(): Promise<void>
ArgumentsRequiredType

The return type is Promise<void>.

Usage flow

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

Feature explanations and examples