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

RadGridView sort options and filter options font too small

2 Answers 133 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Evan
Top achievements
Rank 1
Evan asked on 30 Jul 2018, 01:10 PM

Hi all- 
I'm using a RadGridview (Telerik Winforms version 2018.1.220.40) and am having trouble setting the font size for the a) right click on column header sort options (ascending, descending, no sort etc)  and b) the list of filters (contains, equals, etc) that pops out to the side from the excel filter options.    (Dess helped me here with setting the font size for the excel filter box https://www.telerik.com/forums/radgridview-excel-filter-box-has-tiny-elements#jN8hkMsaPEuZCHiUFqAqFQ)  but I can't get the font right for the sorting options and the filter operators.    Basically the issue is that everything on the grid is 14 point font, but the sort options and filter operators list are 8.5 point. 

I've tried searching through the cell elements to find these items but I don't know what they're called (or else I'm not finding them...)   Also have googled but have had no luck.   Does anyone know the best way to set these font sizes? 

 

Thanks!

 

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 31 Jul 2018, 07:12 AM
Hello, Evan,    

In order to change the font for the sort/filter options menu, you can handle the ContextMenuOpening event and set the Font property of the ContextMenu:
public RadForm1()
{
    InitializeComponent();
    this.radGridView1.ContextMenuOpening+=radGridView1_ContextMenuOpening;
}
 
Font f = new Font("Arial", 12f, FontStyle.Italic);
private void radGridView1_ContextMenuOpening(object sender, Telerik.WinControls.UI.ContextMenuOpeningEventArgs e)
{
    e.ContextMenu.Font = f;
}

I hope this information helps. If you have any additional questions, please let me know.  
 
Regards,
Dess
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Evan
Top achievements
Rank 1
answered on 05 Aug 2018, 06:39 PM
Thanks Dess- works great. 
Tags
GridView
Asked by
Evan
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Evan
Top achievements
Rank 1
Share this question
or