API REFERENCE

collapseAllTreeNodes

Collapses all branch nodes in the current tree.

What does this API do?

Collapses all branch nodes in the current tree.

API for Pro features: Tree data

Exact input and result types

typescript
collapseAllTreeNodes(): Promise<void>
ArgumentsRequiredType

The return type is Promise<void>.

Usage flow

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

Feature explanations and examples