By default the grid pagination only works taking count of the actual records instead of (alternatively) taking in consideration the groups count.
It would be nice to have the possibility to choose between those 2 when using groupBy and process functions.
This pagination feature is already implemented in the Kendo Ui for Asp.Net Core, but it is not available in functions such as process, groupBy or (toDataSourceRequest/toDataSourceRequestString/toOdataString)
Here you can find the related documentation page for the Asp.Net implementation.
Right now the only possible way to achieve this behavior in combo with a KendoAngularGrid is to use the (toDataSourceRequest/toDataSourceRequestString), then into the controller you'll have to mutate the DataSourceRequest Object like following:
[HttpGet]
public async Task<IActionResult> GetData([DataSourceRequest] DataSourceRequest request, CancellationToken cancellationToken) {
var data = //... ;
request. Skip = (request.DataSourceRequest.Page - 1) * request.DataSourceRequest.PageSize;
request.Take = request.DataSourceRequest.PageSize;
request.IsExcelExportRequest = true; // without this the items property of the GroupResult type will be null
request.GroupPaging = true;
return Ok(await data.ToDataSourceResultAsync(request, cancellationToken);
}