Issue with the footer column sum when using along with the grouping
I found footer column summing up all the vales not working appropriately when you using grouping based on rows.
I have a column refunds where i have set aggregationType = uiGridConstants.aggregationTypes.sum and i have also used grouping with
treeAggregationType = uiGridGroupingConstants.aggregation.SUM. Whats happening is footer column total is also adding up the group header total(Sum) resulting in value which is twice what it supposed to be. EX:
In the above example footer column total should be 100 irrespective of the grouping Sum on column1 and column2. Its just an header, it shouldn't take the value of the header.
+1 Can confirm. The way I sort of got around this was by manually adding up the data and setting the footerCellTemplate to the sum - but for some reason this broke header filters from showing.
https://github.com/angular-ui/ui-grid/issues/3916
Don't use aggregationType. Just follow the grouping tutorial.
I've also tried with treeAggregationType, and I get the same results as OP.
Take a look at this
http://plnkr.co/edit/c0EIopXUgnoNQDyxzbot?p=preview
+1
Please see this @vvardhanz Grouping