Telerik Blazor Grid: Get All Filtered Data (not only what is displayed in current page)

1 Answer 520 Views
General Discussions
Alex
Top achievements
Rank 1
Alex asked on 03 Nov 2021, 03:07 AM

Following this code sample to grab filtered data: https://docs.telerik.com/blazor-ui/knowledge-base/grid-get-filtered-data

As per description this should return all filtered data, however it does not, it only returns filtered results that are shown on the current page, if you move to the next page it will get next page's results and so on, instead of getting entire filtered data set.

Is there any way to get entire filtered data set?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 04 Nov 2021, 04:25 AM

Hello Alex,

The grid does not aim to have all the data, but only the relevant page of data. Doing that also optimizes the underlying data source query.

If you want all the data, you should still use the OnRead event, but implement the desired filtering logic in your own backend. You could even use the datasourcerequest object we provide and set PageSize to 0 so there is no paging, get the full list of data, and take the top N items to give to the grid based on its actual page size.

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or