View Full Version : Grid - How to get Summary of Template Fields?

13 Dec 2012, 4:26 PM
The summary feature is incredibly useful for vanilla data... But if you want to add a calculated row (you can use a template column for instance to do this) how do you calculate a total (or other summary) of those?

Or is there another way to do it that doesn't involve template columns?

Quick example:
Hours: 2 Rate:$12, Cost:[calculated, 2 x 12=]$24
Hours: 3 Rate:$9, Cost:[calculated, 3 x 8=] $27
-------------Total Cost:[calculated, 24+27=] $51

15 Dec 2012, 7:55 AM
In a column you can use the summaryRenderer method.