Filtering data within any column of the igx-grid
does not only affect the current page, but the entire dataset. If you want to filter data on the current page only, there may be inconsistencies if the page size changes and the grid's data state gets out of sync.
To retrieve filtered data for the current page with server-side paging, extract the filteringExpressions
from the grid and include them in your request to the backend service for paging. Apply the filter first, then paginate the data and return only the specified page size. This can be demonstrated in pseudo code like so:
data.Where(d => d.meets condition).Skip(page).Take(pageSize)
Check out this example:
https://example.com/sample.html
Client-side filtering in the grid resets pages as filtering reduces the number of pages, potentially causing the user to land on a non-existent page.
For more information on server-side paging and filtering in the igx-grid
, visit:
https://www.example.com/remote-data-operations