Hello guys!
Is it possible to aggregate (sum) some columns inside an extra last row (footer) with a grid that gets data from an async source?
Here is a sample of my code :
<kendo-grid [data]="gridData$ | async" (cellClick)="onCellClick($event)" [rowClass]="rowCallback">
<kendo-grid-column
public gridData$ = this.service.cdiVariable$.pipe(
tap(console.log),
switchMap(cdiVariable =>
this.dataSource.getContracts(cdiVariable).pipe(
catchError(error => {
if (error.error instanceof ErrorEvent) {
this.errorMsg = `Error: ${error.error.message}`;
} else {
this.errorMsg = `Error: ${error.message}`;
}
return of([]);
})
)
),
tap(console.log)
);