1

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

2 Answers 2

1

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
};
Sign up to request clarification or add additional context in comments.

Comments

1

ref - documentation, In AG grid 23.x.x, this can be solved by autoGroupColumnDef.cellRendererParams.suppressCount = true

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.