WarUI

Server-Side Sorting

GRID-A09-F16P0baselinePlanned

In server mode, the grid does not reorder rows itself. It emits the sortModel to a data source and renders the rows the server returns. Loading states, request cancellation and serialisation of the sortModel into query parameters are defined, so large remote datasets sort correctly.

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 grid backed by a mock server with adjustable latency and 1 million virtual rows.

Expected behavior

Clicking a header updates the indicator immediately, shows the loading state, and sends the request with the sortModel. Fast repeated clicks cancel stale requests, so only the latest response renders. When the server fails, the grid reverts to the previous sort and shows an error.

Planned API surface

sortModedataSource.getRowsGetRowsParams.sortModelAbortSignalloadingOverlayapi.refreshServerSide

Acceptance criteria

  • In server mode, no client-side comparator runs (pending)
  • Each change produces exactly one request containing the full sortModel (pending)
  • The previous in-flight request is aborted through AbortSignal (pending)
  • Responses that arrive after a newer request are ignored (pending)
  • On error, the sortModel rolls back and sortChanged fires with source='server' and the restored model (pending)