API REFERENCE

applyColumnState

Restores saved column state. Verify that IDs match current columns.

What does this API do?

Restores saved column state. Verify that IDs match current columns.

Exact input and result types

typescript
applyColumnState(state: ColumnStateEntry[], opts?: ApplyColumnStateOptions): Promise<void>
ArgumentsRequiredType
stateRequiredColumnStateEntry[]
optsOptionalApplyColumnStateOptions

The return type is Promise<void>.

Usage flow

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

Read related types

Feature explanations and examples