Column Group Footer
When the grid is grouped, the columns can display a footer with information about the column data aggregates and some custom text/logic. The template is strongly typed and exposes the available aggregates values.
The GroupFooterTemplate context exposes the current group value through its Value property. It does not expose the name of the field that defines the group. To get the group field name, read the current Grid state and inspect the Member property of the GroupDescriptor:
private TelerikGrid<MyModel> GridRef { get; set; }
private string GetGroupFieldName()
{
return GridRef.GetState().GroupDescriptors.FirstOrDefault()?.Member;
}
When the Grid has multiple grouping fields, inspect the full GroupDescriptors collection. Its order represents the grouping order; the GroupFooterTemplate context does not identify which group descriptor is currently rendering.
Sample Column Group Footer Template
Using Components in Grid Group Footer Templates
See specifics and example in this knowledge base article: Using Components in Grid Templates.