Get a List of currently displayed items in a TelerikGrid Page

1 Answer 495 Views
Grid Pager
Rémy
Top achievements
Rank 1
Rémy asked on 23 Feb 2022, 12:38 PM
Hello,
I'm currently using the TelerikGrid component from Telerik UI for blazor, and I would like to know if there's a possibility of retrieving the currently displayed data on a page. 
For example if I got 24 data and set the PageSize to 18, is there a way to get a list of the 18 data displayed on the first page and when going to second page, get a list of the 6 data on this page ?

Thanks in advance 

Rémy Macherel

1 Answer, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 23 Feb 2022, 09:40 PM

Hello Rémy, 

This article shows how you can do this: https://docs.telerik.com/blazor-ui/knowledge-base/grid-get-filtered-data

 

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/.

Rémy
Top achievements
Rank 1
commented on 28 Feb 2022, 07:19 AM

Hi thanks for your answer, 
I still got a problem, when using your example, the args (GridReadEventArgs) does not contain a definition for Data and Total. 

I looked on the using but I seem to have them all the same as in your example. I'm using Telerik UI for blazor 2.25

 

Kind regards

Rémy Macherel

Rémy
Top achievements
Rank 1
commented on 28 Feb 2022, 08:40 AM

I also tried only importing the example code in an other project and the same problem persists. The args has no definition for Data and Total properties. Am I missing something ?

Rémy
Marin Bratanov
Telerik team
commented on 28 Feb 2022, 09:35 PM

The current code is for versions 3.0.0 and later, your version still does not have that. You should upgrade to the latest (also, take a look at this).
Tags
Grid Pager
Asked by
Rémy
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or