Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hiding of row count in ag grid aggregation / row grouping

Tags:

ag-grid

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.

like image 314
Rakesh Avatar asked Apr 04 '19 11:04

Rakesh


3 Answers

You can use suppressCount within cellRendererParams

cellRendererParams: {
    suppressCount: true, // turn off the row count
}
like image 69
un.spike Avatar answered Oct 29 '22 10:10

un.spike


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
    }
}
like image 31
Aaron Hudon Avatar answered Oct 29 '22 08:10

Aaron Hudon


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

gridOptions.groupRowRendererParams = {
  suppressCount: true
};
like image 2
Spikolynn Avatar answered Oct 29 '22 10:10

Spikolynn