Selection preserved across paging
Keeps selected rows selected when the user moves between pages, so the selection is a data-set-level concept rather than a page-level one. A badge shows the total selected count across pages. A 'Show selected only' view helps users review their choices.
Planned. This page shows the specification from issue #189. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A candidate grid with 500 rows, 20 per page, the checkbox column enabled and a selected-count badge.
Expected behavior
Selecting rows on page 1 and going to page 2 keeps the page 1 selection, and the badge shows the total. Returning to page 1 shows the checked rows. With preservation off, changing page clears the selection.
Planned API surface
preserveSelectionOnPageChange: booleanselectedRowKeysgetSelectedCount()showSelectedOnlyAcceptance criteria
- With preservation on, selectedRowKeys keeps keys of rows that are not on the current page. (pending)
- Checkboxes reflect the stored selection when navigating back to a page. (pending)
- getSelectedCount returns the total across pages. (pending)
- showSelectedOnly lists only selected rows, paginated. (pending)
- With preservation off, a page change fires onSelectionChange with source='pageChange' and clears the selection. (pending)