This is a migrated thread and some comments may be shown as answers.

How to set total number of rows in a grid

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sed
Top achievements
Rank 1
Sed asked on 20 Jan 2021, 11:52 AM

Hi!

I've been trying to do this for less than a week but no luck so far.

I'm doing server-side pagination and try to load as many rows as needed to be shown on a grid page (based on pageSize and pageNumber). So far so good. But the problem is, the kendo grid assumes that the total number of row is the number of records my SP returns (which would be 10 if the page size is set to 10), and the only number it shows for the page number is '1'. I assume if I could set the total number of rows to the number of records I have (for example 100), then the grid will show the other pages. Is it even possible with kendo grids?

Thank you in advance.

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 22 Jan 2021, 10:26 AM

Hello, Sed,

If I correctly understand the issue, you are not seeing all records/pages correctly in the Pager. Could you please share a small runnable example where I can debug the Grid configuration? I will then be able to provide a more meaningful answer.

In the meantime, you could have a look at our Paging demo which might be of some help on the matter.

Looking forward to your reply.

Regards,
Martin
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
Grid
Asked by
Sed
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or