Search code examples
angular-ui-grid

How to remove count after grouping in angular UI grid


After grouping a column in the UI grid, count of no. of records in that category is displayed next to it, how can I remove it as shown in the below image

enter image description here


Solution

  • It's a little hard to find in the documentation, but you can hide these by setting the groupingShowCounts property of the grid options to false.

    eg.

    <div id="grid1" ui-grid="gridOptions" ui-grid-grouping class="grid"></div>

    $scope.gridOptions = {
        data: $scope.data,
        groupingShowCounts: false
    };