I'm using a Kendo DataGrid and want to programmatically set the sort and the group of its datasource without it making 2 separate network calls to get the data. The datasource is using a Web API OData URL, serverPaging, serverFiltering, serverSorting are all set to true.
The following results in 2 separate network calls:
grid.dataSource.sort([{ field: "Name", dir: "asc" }]);
grid.dataSource.group([{ "field": "Region", "dir": "asc" }]);
Is there any way to achieve a programmatic sorting/grouping in a single request?
QueryByCubeLINQ extension method provided by AdaptiveLINQ. Disclaimer: I'm the AdaptiveLINQ developer. - nlips