API REFERENCE

restoreSnapshot

Restores source data from a snapshot. Does not automatically save to the server or restore view state.

What does this API do?

Restores source data from a snapshot. Does not automatically save to the server or restore view state.

Exact input and result types

typescript
restoreSnapshot(id: string): Promise<boolean>
ArgumentsRequiredType
idRequiredstring

The return type is Promise<boolean>.

Usage flow

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

Feature explanations and examples