How to apply the style to the FilterToggleButton?

Please, i request help to apply the example style (link) to the togglebuttonfilter.

Changing filter icon style after applying filters

https://help.syncfusion.com/wpf/sfdatagrid/filtering#appearance-customization

I would also like to know how to remove or modify the column header so that it does not have icons.

Thanks

1 Reply

JG Jai Ganesh S Syncfusion Team November 9, 2017 01:17 PM UTC

Hi Andres, 
 
We believe that you have changed the  FilterToggleButton style by using the below link, 
 
 
You can also use the below kb link to change the FilterToggleButton color,  
And also change the position of the FilterToggleButton and the Sort Icon in column header by using the below kb link, 
If you don’t want to show the FilterIcon in column header then you can set AllowFiltering=”False” for particular column, 
<syncfusion:GridTextColumn HeaderText="Order ID" AllowFiltering="False" 
                                                   MappingName="OrderID"/> 
 
Note: In this case the FilterToggleButton not shown and filter also not applied. 
 
 
 
you can also remove the FilterIcon in column header while setting AllowFiltering=”True” by overriding the  OnUpdateEditBinding in customized GridDataHeaderCellRenderer and set the FilterIconVisibility as Collapsed like below, 
 
sfDataGrid.CellRenderers.Remove("Header"); 
sfDataGrid.CellRenderers.Add("Header", new HeaderCellRendererExt()); 
 
public class HeaderCellRendererExt : GridDataHeaderCellRenderer 
{ 
    public HeaderCellRendererExt() 
    { 
 
    } 
 
    public override void OnUpdateEditBinding(Syncfusion.UI.Xaml.Grid.DataColumnBase dataColumn, Syncfusion.UI.Xaml.Grid.GridHeaderCellControl element, object dataContext) 
    { 
        base.OnUpdateEditBinding(dataColumn, element, dataContext); 
        element.FilterIconVisiblity = Visibility.Collapsed; 
        element.SortDirection = null; 
    } 
} 
 
If we misunderstood your requirement then could you please share the more information about your requirement. This would be more helpful for us to proceed further.  
Regards, 
Jai Ganesh S 


Loader.
Up arrow icon