Can u share an example for the grid which uses aggregate, is page able and has export excel feature.
In examples provided u guys use
.get(`${this.BASE_URL}${tableName}?${queryStr}`)
but usually for aggregates I am using something like
return this.http.get<Array<CollectorGoalSummaryModel>>('/api/report')
.subscribe((data)=>{
let aggregates: any[] = [
{field: 'totalCash', aggregate: 'sum'}
];
this.store.collectorGoalSummary = data;
this.store.totals = aggregateBy(data, aggregates)
this.store.currentPageStats = {
data: this.store.collectorGoalSummary.slice(skip, skip + pageSize),
total: this.store.collectorGoalSummary.length
}
})
Having a hard time trying to put the Export grid with aggregates in it