WarUI

Grouping state save and restore

GRID-A16-F23P2baselinePlanned

The grouping configuration, the expanded paths and the group sort can be serialized and restored, for example from local storage or a URL, so users can return to the same view.

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

Live example

Grouped grid with a 'Save state to localStorage' toggle on.

Expected behavior

Expanding groups updates the JSON panel. Reloading the demo iframe restores the view. Reset clears it.

Planned API surface

api.getGroupingStateapi.setGroupingStateoptions.grouping.stateKeyevents.groupingStateChanged

Acceptance criteria

  • The state includes groupBy, the expanded paths, groupSort and the display mode. (pending)
  • Restoring with missing columns ignores them and logs one warning. (pending)
  • Expanded paths for keys that no longer exist are dropped silently. (pending)
  • The state is versioned, with a schema version field. (pending)