Grid Grouping Aggregates

How Do I disable grouping aggregates which comes at the bottom of Group. 


I have following code for dynamic groupings

let aggregateCols=[];

uniqueYrs.forEach(yr => {
Config.monthNames.forEach(m=>{
aggregateCols.push({
type: 'Sum',
field: m+'-'+yr,
format: 'N'
});
});
});
this.gridActuals.aggregates =[{
columns: aggregateCols
}];

1 Reply

PS Pavithra Subramaniyam Syncfusion Team July 21, 2022 12:38 PM UTC

Hi PDev,


Thanks for contacting Syncfusion support.


You can achieve your requirement by setting the footerTemplate property so the summary will be shown only at the bottom of the Grid. Please refer to the below code example and sample link for more information.


aggregateCols.push({

  type'Count',

  field: col.field,

  format: 'N',

  footerTemplate: 'Count: ${Count}',

});

 


Sample: https://stackblitz.com/edit/angular-ffxgbu?file=app.component.html,app.component.ts


Please get back to us if you need further assistance on this.


Regards,

Pavithra S


Loader.
Up arrow icon