WarUI

Sort and filter state

GRID-A21-F03P0baselinePlanned

Persists multi-column sort, including direction and priority, and all filter models: per-column filters, quick search text and an advanced filter expression tree. Filter state is stored in a declarative, operator-based form so it can be inspected, migrated and redacted.

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

Live example

A ticket grid with column filters, a quick search box and multi-sort enabled.

Expected behavior

The user applies two sorts and three filters. The state JSON shows sort priority order and a structured filter model. Re-applying the state reproduces the same row count and row order.

Planned API surface

getState().sortgetState().filtersetState({sort, filter})FilterModelquickFilterTextonSortChangeonFilterChange

Acceptance criteria

  • Sort is stored as an ordered array of entries containing colId and direction. (pending)
  • The filter model stores the operator, the operand or operands, and the logical combinator, never a precompiled predicate. (pending)
  • Restoring sort and filter triggers exactly one data pipeline recompute, or one server request when server-side row models are used. (pending)
  • Quick filter text is included only when includeQuickFilter is true. (pending)
  • A filter on an unknown column is dropped and reported through a restore warning. (pending)