Search code examples
angularag-gridag-grid-angular

Enable floatingFilter in autoGroupColumn


How to enable floatingFilter in autoGroupColumn's header cell?

Seems like this is not enough:

autoGroupColumnDef: {
        resizable: true,
        cellClass: 'group-row-cell col-number-1',
        headerClass: 'head-number-1',
        cellRendererParams: {
            suppressCount: true
        },
        suppressMovable: true,
        floatingFilter: true
}

All headers contain floating filter element except the autoGroupColumn

enter image description here


Solution

  • You need to specify the field in autoGroupColumnDef, otherwise the grid won't know what to filter by.

    Take a look at this Plunker example.