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

How to Change Data Font of Filter PopUp

2 Answers 124 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zan
Top achievements
Rank 1
Zan asked on 02 Dec 2017, 10:59 AM

Hello Telerik Team,

I'm using Excel-like filtering feature of RadGridView. I need to change font in PopUp.

2 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 04 Dec 2017, 12:08 PM
Hi  AungKo,

You can use the FilterPopupInitialized event to access the popup and subscribe to the NodeFormatting event of the tree view:
private void RadGridView1_FilterPopupInitialized(object sender, FilterPopupInitializedEventArgs e)
{
    RadListFilterPopup popup = e.FilterPopup as RadListFilterPopup;
    if (popup != null)
    {
        popup.MenuTreeElement.TreeView.NodeFormatting -= TreeView_NodeFormatting;
        popup.MenuTreeElement.TreeView.NodeFormatting += TreeView_NodeFormatting;
    }
}
 
Font font = new Font("Segoe Script", 9, FontStyle.Regular);
 
private void TreeView_NodeFormatting(object sender, TreeNodeFormattingEventArgs e)
{
 
    e.NodeElement.ContentElement.Font = font;
   
}

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Zan
Top achievements
Rank 1
answered on 05 Dec 2017, 04:36 AM
Thank Dimitar, your solution was useful.
Tags
GridView
Asked by
Zan
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Zan
Top achievements
Rank 1
Share this question
or