WarUI

Disabling and Locking Sorts

GRID-A09-F19P2beyond-baselinePlanned

Columns can be made unsortable. Sorts can also be locked so users cannot remove or reorder them, while still being able to add secondary sorts. Locked sorts show a lock indicator.

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

Live example

An audit grid with Date desc locked as priority 1.

Expected behavior

Clicking Date does not change it. Shift-clicking other columns adds them at priority 2 or higher. The Notes column cannot be sorted when it is disabled.

Planned API surface

columns[].sortablecolumns[].lockSortlockedSortModel

Acceptance criteria

  • A locked entry always stays at its priority (pending)
  • A plain click on another column replaces the unlocked sorts only (pending)
  • The lock icon has accessible text (pending)
  • The API can override locks only with force=true (pending)