Hi,
I want to show aggregate footer in my grid.
I have checked on https://www.telerik.com/kendo-angular-ui/components/grid/grouping/aggregates/ for the aggregate footer. However, I cannot apply it into my coding. As I am getting data from WebAPI and then bind into grid. So my columns are all dynamic. I cannot define the aggregates and state.group as per shown in the website.
public aggregates: any[] = [{ field: 'UnitPrice', aggregate: 'average' }, { field: 'Discontinued', aggregate: 'count' }]; public state: State = { skip: 0, take: 5, group: [{ field: 'Discontinued', aggregates: this.aggregates }] };
Is there any workable sample similar to my case to refer? Thank you.