This is a migrated thread and some comments may be shown as answers.

Aggregates in group header

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Perfect0
Top achievements
Rank 1
Perfect0 asked on 17 Dec 2020, 04:24 AM
Is it possible to put an aggregate count in a group header?  For example, in the attached image, the yellow highlights I would like to put in a total at each grouping for In Process and Waiting counts.

1 Answer, 1 is accepted

Sort by
0
Rezan
Top achievements
Rank 1
Iron
answered on 12 Aug 2022, 11:18 PM

add this code inside you column


 <ng-template
          kendoGridGroupHeaderTemplate
          let-element
          let-aggregates="aggregates"
        >
          <span>
            {{ element.value }} : number of units in group:{{
              aggregates.shortDescription.count
            }}
          </span>
        </ng-template>

Tags
Grid
Asked by
Perfect0
Top achievements
Rank 1
Answers by
Rezan
Top achievements
Rank 1
Iron
Share this question
or