Rakesh
Rakesh

Reputation: 329

Hiding of row count in ag grid aggregation / row grouping

Is there a way to hide the row count in the aggregated rows in ag-grid? I couldn't find any specific configuration to hide the row count appearning beside the aggregated cell.

Upvotes: 8

Views: 9760

Answers (3)

Aaron Hudon
Aaron Hudon

Reputation: 5839

The last two answers do not seem to work in v25 of the ag-Grid.

See this page: https://www.ag-grid.com/javascript-grid/grouping/

The solution for me is to use the autoGroupColumnDef like the following:

autoGroupColumnDef: {
    cellRendererParams: {
        suppressCount: true
    }
}

Upvotes: 10

Spikolynn
Spikolynn

Reputation: 4173

When using gridOptions.groupUseEntireRow = true you can set it with

gridOptions.groupRowRendererParams = {
  suppressCount: true
};

Upvotes: 7

un.spike
un.spike

Reputation: 5113

You can use suppressCount within cellRendererParams

cellRendererParams: {
    suppressCount: true, // turn off the row count
}

Upvotes: 7

Related Questions