Set Buttoncount to 0 doesn't remove the dropdown to select a page

1 Answer 47 Views
Grid Pager 
Ewald
Top achievements
Rank 1
Iron
Ewald asked on 03 Dec 2023, 04:27 PM

My data fits into a single page, and I don't want to show any of the paging controls other than the info. However I can't seem to remove the dropdown

See https://stackblitz.com/edit/react-fv221r?file=app%2Fmain.tsx for a repro

1 Answer, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 06 Dec 2023, 06:22 AM

Hello, Ewald,

The easiest way to control the visibility of the pager elements at the moment is to control their `display` mode via CSS styles. For example, you can add a custom class to the grid and cascade to it in order to hide the pager dropdown:

            .grid-no-pager .k-pager-numbers-wrap {
                display: none;	
            }

In addition, there is an already logged enhancement for controlling the visibility of this dropdown, you can track its progress on the link below:

Regards,
Vessy
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
Grid Pager 
Asked by
Ewald
Top achievements
Rank 1
Iron
Answers by
Vessy
Telerik team
Share this question
or