Search results

Grouping in React Grid component

28 Nov 2022 / 1 minute to read

Customizing the group header

Use the below CSS to customize the group header element.

Copied to clipboard
.e-grid .e-groupdroparea {
    background-color: #deecf9;
}

Customizing the group expand or collapse icons

Use the below CSS to customize the Grid group expand/collapse icon. You can use the available Syncfusion icons based on your theme.

Copied to clipboard
.e-grid .e-icon-gdownarrow::before{
  content:'\e916'
}
.e-grid .e-icon-grightarrow::before{
  content:'\e913'
}

Customizing the group caption row

Below CSS customizes the Grid group caption row element.

Copied to clipboard
.e-grid .e-groupcaption {
    background-color: #deecf9;
}
.e-grid .e-recordplusexpand,
.e-grid .e-recordpluscollapse {
    background-color: #deecf9;
}

Customizing the indent cell

Use the below CSS to customize the Grid grouping indent cell element.

Copied to clipboard
.e-grid .e-indentcell {
    background-color: #deecf9;
}