I have a kendo grid with two levels of groups. I have groupHeaderTemplates defined for these two groups. I have a groupFooterTemplate defined for my aggregate value which is timeWorked. The problem is the groupHeaderTemplate is now defined for both the groups. I need it defined for only the other group.
I tried the CSS way of hiding the extra records but the problem with this is there is no defining characteristics in the .k-group-footer rows to distinguish what group it belongs to and $("#grid .k-grid-content") doesn't show the hierarchy.
http://www.telerik.com/forums/how-to-do-custom-aggregate-functions Shows how to get the groupId in the footer. However, it will not work because the groupId uses a global variable which will be overwritten with whatever groupHeaderTemplate function is called first. Since the groupHeaderTemplates are done before any groupFooterTemplates, I still have no way of knowing what the groupId refers to.
This is what my group option looks like:
[ {field: “projectDescription”, aggregates: [ {field: "timeWorked", aggregate: "sum"} ]}, {field: "entryDate"} ];