GroupHeaderColumnTemplateDirective

Represents the group-header column template of the Grid which helps to customize the content of the group headers. To define the group header template, nest an <ng-template> tag with the kendoGridGroupHeaderColumnTemplate directive inside <kendo-grid-column>. (See example).

The template context is set to the current data item and the following additional fields are passed:

  • groupThe current group item.
  • fieldThe name of the field by which data is grouped.
  • valueThe current group value.
  • aggregatesAll aggregate values for the current group.
<kendo-grid-column field="ProductName" title="Product Name">
    <ng-template kendoGridGroupHeaderColumnTemplate let-group="group" let-aggregates="aggregates">
        <span title="Group Header Column Template for ProductName">
            Count: {{ aggregates.Discontinued.count }}
        </span>
    </ng-template>
</kendo-grid-column>

Selector

[kendoGridGroupHeaderColumnTemplate]

In this article

Not finding the help you need?