This is a migrated thread and some comments may be shown as answers.

Grouping & sorting when using OData

3 Answers 409 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anton
Top achievements
Rank 1
Anton asked on 05 Jun 2017, 09:59 AM

Hello

I'm using OData as a backend service and of course I use server sorting, paging and filtering in my data source config, but server groupping is not supported, so I can't use it. The problem happens when I use sorting + grouping. Results are not sorted inside of the group. 

How can this be fixed?

Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetina
Telerik team
answered on 07 Jun 2017, 10:03 AM
Hello Anton,

This is expected behavior because grouping functionality needs sorting to be applied to display sorted results in the group. However, the DataSource cannot perform sorting on the client-side (because of the serverSorting setting). That is why the documentation advises on applying all data operations either on the server side or on the client side.
You can enable client sorting (which may trigger undesired results with paging), switch all operations to client mode or leave the groups like this if the unsorted information is at least the correct set of data that needs to be displayed.

Regards,
Tsvetina
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Anton
Top achievements
Rank 1
answered on 08 Jun 2017, 04:42 AM

Hi Tsvetina,

Ok, got it.

Thanks

0
Anton
Top achievements
Rank 1
answered on 02 Oct 2017, 02:54 AM
Hi guys, I wanted to keep OData very much, so come up with some trick for solving this, described here: http://tsherlock.tech/2017/09/30/kendo-grid-workaround-for-client-side-groupping/ Hope it will be useful for someone else. Thanks.
Tags
Grid
Asked by
Anton
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Anton
Top achievements
Rank 1
Share this question
or