WarUI

Save and Restore Column State

GRID-A08-F22P0baselinePlanned

Methods export and import a serializable column state covering order, width, flex, pinning, visibility and group open state. Users get their layout back across sessions, without telemetry or a server requirement.

Planned. This page shows the specification from issue #185. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid with a JSON panel that shows the current state, plus Save, Restore and Reset buttons that use localStorage.

Expected behavior

Save writes the JSON state, and Restore reproduces the identical layout. Partial state objects update only the properties they specify. Unknown column ids are ignored, and new columns not in the state fall back to their definitions.

Planned API surface

api.getColumnState()api.applyColumnState(state, options)options.applyOrderoptions.defaultStateapi.getColumnGroupState()api.setColumnGroupState(state)api.resetColumnState()

Acceptance criteria

  • Applying the output of getColumnState reproduces the identical layout (round-trip). (pending)
  • The state is plain JSON with a schema version field. (pending)
  • Partial state does not alter unspecified properties. (pending)
  • Unknown ids are ignored, and they are reported in the return value. (pending)
  • applyColumnState emits a single columnStateChanged event with source='restore'. (pending)