My grid data is bound to an observable as follows:
protected initDomainEntityQuery() {
this.gridSettings.state.skip = 1;
this.gridData$ = this.stateChange$.pipe(
takeUntil(this.unsubscribe),
switchMap(() =>
this.dataService.getData(this.buildDomainEntityPayload())
),
map((data) => {
if(this.groupable && data.data.length > 0) {
return process(data.data, { group: this.groups });
}
else
return data;
})
} }
The problem is that the data set returned could potentially span many pages, but after the aggregation, the DataResult total is 1 page long. Is there any way of working round this?
The use case is to present the data grouped by a type field.
Thanks.