I'm trying to add Group Headers to my grid, but can't get anything to display. Aggregate footers are fine, but headers just don't seem to work. Example grid...
@(Html.Kendo().Grid<PersonTimesheetSummary>()
.Name("grid")
.Columns(columns => {
columns.Bound(p => p.PersonCode);
columns.Bound(p => p.FullName);
columns.Bound(p => p.NoOfTimesheetDays).ClientGroupHeaderTemplate("#=sum#");
})
.DataSource(dataSource => dataSource
.Ajax()
.Aggregates(aggregates =>
{
aggregates.Add(p => p.NoOfTimesheetDays).Sum();
})
.Group(groups => { groups.Add(p => p.Company); groups.Add(p => p.Department); })
.Read(read => read.Action("GetPersonTimesheetSummary", "Person").Data("getGridParams")))
)
I've tried this using the Html and tag helper formats with no success. I'm using version 2019.2.514.