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