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

Set/limit the number of pages shown in the paging control?

4 Answers 573 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 10 Dec 2019, 03:28 AM
Is there a way to set/limit the number of pages that show in the paging control? It looks like this is calculated by the grid using the number of items per page (configurable) and how many items in the grid.

4 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 10 Dec 2019, 09:25 AM

Hello Mark,

The grid pager generates the list based on the total count of items in the data source given to the grid and it needs to be managed like that so the correct pager is generated. If it were exposed for configuration, that would allow invalid configurations.

Could you provide some more details on what you want to achieve so I can offer a better answer? Is it, by chance, a responsive layout for mobile devices: https://feedback.telerik.com/blazor/1442883-responsive-layout-for-the-pager?

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
0
Mark
Top achievements
Rank 1
answered on 10 Dec 2019, 03:21 PM

Yes, that is the exact issue I'm having. I am testing on an iphone layout using chrome debugger and the last part of the grid's paging footer is being cut off. I placed a vote for the issue. Thanks for quick response.

Mark

0
Nick
Top achievements
Rank 1
answered on 11 Dec 2019, 12:34 PM

Sorry Marin, I've posted a very similar question, I only just spotted Mark's post. Feel free to combine the two. I think my issues are much the same:

  1. Incorrect default behaviour on mobile browsers.
  2. I'd like a way to decide how many, or at least the maximum "page number buttons" displayed, including an option to not display them at all and just have the first/last, next/previous page arrows.
0
Nick
Top achievements
Rank 1
answered on 11 Dec 2019, 12:36 PM
Ignore me - I'm going mad - I see I've posted this before and it's been raised as an issue!
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Mark
Top achievements
Rank 1
Nick
Top achievements
Rank 1
Share this question
or