This example demonstrates the use of the GroupingSummaryFeature with server-side summary calculation (results are intentionally wrong).
Note that the js is not minified so it is readable. See remote-group-summary-grid.js.