Style pagination gridview winform?

2 Answers 48 Views
GridView
Alexis
Top achievements
Rank 1
Iron
Iron
Alexis asked on 27 Nov 2023, 06:27 PM

Hi how i can style this pagination

 

 

to be like this

more smallers letter and numbers, its possible?

 

thank you

 

2 Answers, 1 is accepted

Sort by
1
Nadya | Tech Support Engineer
Telerik team
answered on 30 Nov 2023, 03:20 PM

Hello, Alexis,

You can use the Font property of the PagingPanelElement to modify the font size of the text as shown here. In order to reduce the empty space within buttons you can adjust the MaxSize property and specify the Width:

 foreach (var item in this.radGridView1.GridViewElement.PagingPanelElement.ButtonsStripElement.Items)
 {
     CommandBarToggleButton toggleButton = item as CommandBarToggleButton;
     if (toggleButton != null)
     {
         toggleButton.MaxSize = new Size(100, 0);
     }
 }

Off topic, I noticed that you posted the same questions about customizing paging element in other thread as well. We kindly ask you to use just one thread for a specific problem to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two or more tickets instead of one. Threads are handled according to license and time of posting. Thank you for your understanding.

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Nadya | Tech Support Engineer
Telerik team
answered on 29 Nov 2023, 02:26 PM

Hello, Alexis,

If you want to customize the paging element when paging is enabled in RadGridView you can refer to the following article in our documentation and access the desired buttons and elements in the PagingPanelElement. Hence, you can modify their properties: Paging panel - RadGridView - Telerik UI for WinForms

Please let me know if I can assist you further. 

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Alexis
Top achievements
Rank 1
Iron
Iron
commented on 29 Nov 2023, 02:28 PM

any real example to make it alike the picture i upload? Maybe font size change, also too many empty space inside number
Tags
GridView
Asked by
Alexis
Top achievements
Rank 1
Iron
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or