Ilana, this is excellent.
I would strongly suggest including this example as a link in the documentation for both aggregates and for how to do headings. It de-cyphers both of these systems with one example.
Can I ask a follow up question: I notice from your example that you place aggragates both in the grid.datasource.group object as well as in the grid.datasource object. Why?
Especially since I have another example from Alexander@Telerik where what I wanted was aggragate information in the Grid Group HeaderTemplates and he showed me to put them in the grid.columns object (as shown below).
Suggestion for Telerik: write up a "TECH NOTE" that explains the meaning of the different locations of where one puts aggragate and what it does in each place. And if I I have multiple aggragates (sum, count, etc) in the column below:
groupHeaderTemplate:"Type: #= value # Count: #= count #"
From the Kendo documentation I never learned about the .closest and .nextUntil methods. These are both new constructs for me, since I come from the Silverlight/Flash/C# world, not JQUERY.
Do you recommend becoming an expert in JQuery before learning Kendo? or is it just that I am doing non-standard things?
var currentGroupRow = $(this).closest(".k-grouping-row");
// Select the items in the current group