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

change color and font of context menu in radgridview

2 Answers 245 Views
GridView
This is a migrated thread and some comments may be shown as answers.
manizheh
Top achievements
Rank 1
manizheh asked on 01 Jul 2016, 08:08 AM

When you filter a column on radgridview , a context menu is displayed,which contions a list of items like "no filter", "is null", "not null","Start with" ,"custom" and ...

I wan to change font of it. How can I do?

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 01 Jul 2016, 08:21 AM
Hi Manizheh,

Thank you for writing.

The filter drop down is actually a context menu. So you can use the context menu ContextMenuOpening event to change its font:
Font font = new Font("Segoe Script", 11, FontStyle.Regular);
private void RadGridView1_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
{
    if (e.ContextMenuProvider is GridFilterCellElement)
    {
        e.ContextMenu.Font = font;
    }
}

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
manizheh
Top achievements
Rank 1
answered on 01 Jul 2016, 10:03 AM
thanks. yes.it is worked.
Tags
GridView
Asked by
manizheh
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
manizheh
Top achievements
Rank 1
Share this question
or