OData pagination by number of groups
there is a need to paginate mat-table by the number of groups, not records. The records, which are shown in the mat-table are grouped by a column. The functionlaity which needs to be done is about using groups for pagination instead of the entries itself.
For example, I load a grid of products, where each product has a category name. The items in the mat-table are grouped by the category name. The odata should paginate entries by the count of categories instead of the the products in the grid. Any ideas how this is done?