This example demonstrates the use of the GroupingSummaryFeature with server-side summary calculation (results are intentionally wrong).
This page also illustrates how to use Ajax simulation instead of a live server.
Note that the js is not minified so it is readable. See remote-group-summary-grid.js and remote-group-summary-grid-simjax.js.