Search code examples
ag-grid

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.


Solution

  • You can use suppressCount within cellRendererParams

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

    UPDATE

    now its moved to the groupRowRendererParams inside gridOptions

    const gridOptions = {
        
        groupRowRendererParams: {
            suppressCount: true,
        },
    
        rowSelection: { 
            mode: 'singleRow', 
            checkboxLocation: 'autoGroupColumn',
        },
    
        // other grid options ...
    }