-
Notifications
You must be signed in to change notification settings - Fork 218
Open
Description
Description
A pagination inconsistency occurs when users select "All" items per page and subsequently modify filter criteria. The Grid fails to maintain the "show all results" behavior and incorrectly splits filtered data across multiple pages (using the last page size).
This doesn't happen if the page size is a fixed number (for example, 5, 10, 20, etc.)
Steps To Reproduce
https://stackblitz.com/edit/angular-bucaubpd?file=src%2Fapp%2Fapp.component.ts
- ✅ Load application - Grid displays page 1 - 5 of 86 items
- ✅ Apply filter: Company name contains "al" - shows 13 splitten on several pages
- ✅ Change page size to "All" - displays all 13 filtered items on a single page
- ❌ Modify filter: Change Company Name from "al" to "a". Should show 71 items on a single page, but it was split with a page size of 13 (the last used one).
Screenshots or video
No response
Actual Behavior
When page size "all" is active and filter changes, the Grid's pagination logic doesn't properly handle the "all" value, reverting to the lastly used page size behavior.
Expected Behavior
When "All" page size is selected, any subsequent filter modifications should:
- Display the complete filtered dataset on a single page
- Maintain page count of 1
- Keep "All" selected in the page size dropdown
- Preserve the "show all items" state consistently