WarUI

Export all rows from a remote or paginated data source

GRID-UG-405-F01P1baselinePlanned

An export hook that fetches the complete dataset from the server before exporting, instead of exporting only the rows currently loaded. The app supplies an async fetch-all function, which receives the grid's current sort and filter model, an AbortSignal and a progress reporter. The function may page through the API internally. Progress and cancel UI are provided, and the export applies the visible column set and for…

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

Live example

A server-paginated grid backed by a mock API (5,000 rows, 100 per page, 300ms latency per page), currently on page 1 with a filter applied.

Expected behavior

'Export visible' downloads 100 rows. 'Export all' pages through the mock API respecting the current filter and sort, shows progress (e.g., 1,200/4,000), and downloads all matching rows. Cancel aborts outstanding requests and produces no file. A simulated server error shows exportError with a retry option, and the grid's displayed page is never changed during export.

Planned API surface

gridOptions.export.fetchAllRows: (ctx: { sortModel, filterModel, columns, signal: AbortSignal, reportProgress(loaded: number, total?: number) }) => Promise<Row[]>api.export.exportCsv({ rows: 'all' | 'visible' | 'selected' })api.export.exportExcel({ rows: 'all' | 'visible' | 'selected' })api.export.cancel(): voidEvents: exportProgress { loaded, total }, exportComplete, exportCancelled, exportError

Acceptance criteria

  • fetchAllRows receives the current sort and filter model and the visible column order (pending)
  • AbortSignal is honored, and cancel produces no partial file (pending)
  • Progress events fire at least once per fetched page (pending)
  • Exported rows use the same value formatters as the existing exporters (pending)
  • Grid state (page, scroll, selection) is unchanged by the export (pending)
  • Docs include a reference fetch-all implementation for offset and cursor pagination (pending)