Pagination with sort, filter and data updates
Defines how the current page reacts when sorting, filtering or row transactions change the dataset. Users should never land on an empty or confusing page after data changes.
Planned. This page shows the specification from issue #199. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
1,000 rows, page size 20, viewing page 9. A quick-filter box and sortable columns are present.
Expected behavior
Filtering resets to page 1 by default. Sorting can keep the page when configured. Removing rows clamps the page index. Adding rows keeps the current page.
Planned API surface
paginationResetOnSortpaginationResetOnFilterpaginationKeepPageOnUpdateapplyTransactiononPageChangeAcceptance criteria
- With default settings, a filter change sets pageIndex to 0 (pending)
- A sort with paginationResetOnSort=false keeps pageIndex when it is still valid (pending)
- A transaction that empties the current page moves to the new last page (pending)
- The pager totals update in the same frame as the row change (pending)