Syncfusion AI Assistant

How can I help you?

Filtering Customization in Angular Grid component

19 Mar 20262 minutes to read

Customize the appearance of filtering elements in the Syncfusion Angular Grid component using CSS. Below are examples for styling various filter bar elements, input fields, icons, dialog content, and Excel-style filter menus.

Customize the filter bar cell element

The .e-filterbarcell class is used to style the filter bar cell element in the grid header.

.e-grid .e-filterbarcell {
    background-color: #045fb4;
}

Filter bar cell element

Customize the filter bar input element

The .e-filterbarcell and .e-input classes are used to style the filter bar input element.

.e-grid .e-filterbarcell .e-input-group input.e-input{
    font-family: cursive;
}

Filter bar input element

Customizing the filter bar input focus

The .e-filterbarcell and .e-input-group.e-input-focus classes are used to style the focused filter bar input element.

.e-grid .e-filterbarcell .e-input-group.e-input-focus{
    background-color: #deecf9;
}

Filter bar input focus

Customizing the filter bar input clear icon

The .e-clear-icon class is used to style the clear icon element within the input group.

.e-grid .e-filterbarcell .e-input-group .e-clear-icon::before {
    content: '\e72c';
}

Filter bar input clear icon

Customize the grid filtering icon

The .e-icon-filter class is used to style the filtering icon element in the grid header.

.e-grid .e-icon-filter::before{
      content: '\e81e';
}

Grid filtering icon

Customizing the filter dialog content

The .e-filter-popup .e-dlg-content classes are used to style the content element within the filter dialog.

.e-grid .e-filter-popup .e-dlg-content {
    background-color: #deecf9;
}

Filter dialog content

The .e-filter-popup .e-footer-content classes are used to style the footer element within the filter dialog.

.e-grid .e-filter-popup .e-footer-content {
    background-color: #deecf9;
}

Filter dialog footer

Customizing the filter dialog input element

The .e-filter-popup and .e-input classes are used to style the input elements within the filter dialog.

.e-grid .e-filter-popup .e-input-group input.e-input{
    font-family: cursive;
}

Filter dialog input element

Customizing the filter dialog button element

The .e-filter-popup and .e-btn classes are used to style the button elements within the filter dialog.

.e-grid .e-filter-popup .e-btn{
    font-family: cursive;
}

Filter dialog button element

Customizing the excel filter dialog number filters element

The .e-filter-popup .e-contextmenu-wrapper ul classes are used to style the number filter elements within the Excel filter dialog.

.e-grid .e-filter-popup .e-contextmenu-wrapper ul{
    background-color: #deecf9;
}

Excel filter dialog number filters element