Skip to content

Page size "All" option breaks when filters are modified, incorrectly paginating results #4722

@mbechev

Description

@mbechev

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

  1. ✅ Load application - Grid displays page 1 - 5 of 86 items
  2. ✅ Apply filter: Company name contains "al" - shows 13 splitten on several pages
  3. ✅ Change page size to "All" - displays all 13 filtered items on a single page
  4. ❌ 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:

  1. Display the complete filtered dataset on a single page
  2. Maintain page count of 1
  3. Keep "All" selected in the page size dropdown
  4. Preserve the "show all items" state consistently

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions