WarUI

Re-Sorting on Data Changes and Edits

GRID-A09-F20P2beyond-baselinePlanned

When data changes, the grid can re-sort immediately, defer the re-sort, or never re-sort, so that rows do not jump away while the user is editing them. A changed row whose position is stale is highlighted.

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

A price grid sorted by Price with live updates every second.

Expected behavior

In immediate mode, rows move as updates arrive. In deferred mode, rows stay in place and are marked stale until the refresh button is clicked. While a cell is being edited, its row stays in place.

Planned API surface

resortOnChangedeferResortWhileEditingapi.refreshSortrowStaleSortClass

Acceptance criteria

  • The modes behave as described above (pending)
  • An edited row never moves while its editor is open (pending)
  • refreshSort re-applies the current sortModel (pending)
  • The stale marker clears after the sort is refreshed (pending)