Grouping with aggregate functions
Grouping with aggregate functions
andreaci
Posts: 2Questions: 0Answers: 0
Ok, I was kind of stuck trying to get totals, averages and everything else in group headers while grouping on a specific field
I realized this fiddle when I got it working with a pretty standard function:
https://jsfiddle.net/andreaci/gcs1gym3/1/
the groupcallback function takes all data in inputs from the drawCallback and create the cells.
Please notice the "aggregate" field in the columns object.
if someone wants to contribute is very welcome!
This discussion has been closed.
Replies
Hi @andreaci ,
You might want to look at this example here, it's doing pretty much the same thing.
Cheers,
Colin
Yes, but I wanted something more generic that I can reuse simply changing a property in a column
Gotcha!