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

Grid group and datatype change?

3 Answers 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 29 Feb 2016, 01:26 PM

Question around grouping. I've noticed that when the grid's read happens it calls the assigned web method as you would expect. What I have noticed that the code below produced two different results. One for grouped data and another type for all other grid alterations (filters and sorts).

Sample code:

Dim temp As IQueryable = grid.ToDataSourceResult(request).Data.AsQueryable

No grid alterations or filtering or sorting the data type of the above object is:

System.Linq.EnumerableQuery(Of myDataType)

Apply one or more groups and the data type becomes:

System.Linq.EnumerableQuery(Of Kendo.Mvc.Infrastructure.AggregateFunctionsGroup)

 

Why does this happen? Have we implemented something incorrectly?

3 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 02 Mar 2016, 12:10 PM
Hello Greg,

This behavior is expected when the ServerOperation option is enabled. Basically, the Grid expected the grouping to be performed on the server-side, and this is exactly what the ToDataSourceResult method does.

Regards,
Alexander Popov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Greg
Top achievements
Rank 1
answered on 02 Mar 2016, 12:19 PM

Thanks for the reply.

What I am wondering is there a way to get all the rows out of result without having to recursively navigate through the nested groups?

0
Alexander Popov
Telerik team
answered on 03 Mar 2016, 02:54 PM
Hi Greg,

I am afraid this is not possible when the data has been grouped.

Regards,
Alexander Popov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Greg
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Greg
Top achievements
Rank 1
Share this question
or