Skip to content

Commit 16584b9

Browse files
committed
Fix 5705 grouping disable show count for columns of type object
1 parent eec9067 commit 16584b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/grouping/js/grouping.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@
353353
* @description shows counts on the groupHeader rows. Not that if you are using a cellFilter or a
354354
* sortingAlgorithm which relies on a specific format or data type, showing counts may cause that
355355
* to break, since the group header rows will always be a string with groupingShowCounts enabled.
356-
* <br/>Defaults to true except on columns of type 'date'
356+
* <br/>Defaults to true except on columns of types 'date' and 'object'
357357
*/
358358
gridOptions.groupingShowCounts = gridOptions.groupingShowCounts !== false;
359359

@@ -582,7 +582,7 @@
582582

583583
if ( typeof(aggregation.groupVal) !== 'undefined') {
584584
aggregation.rendered = aggregation.groupVal;
585-
if ( col.grid.options.groupingShowCounts && col.colDef.type !== 'date' ){
585+
if ( col.grid.options.groupingShowCounts && col.colDef.type !== 'date' && col.colDef.type !== 'object' ){
586586
aggregation.rendered += (' (' + aggregation.value + ')');
587587
}
588588
} else {

0 commit comments

Comments
 (0)