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

Internal method CreateDataSourceResult in Kendo.Mvc.Extensions.QueryableExtensions has small error

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stef Heyenrath
Top achievements
Rank 1
Stef Heyenrath asked on 16 Oct 2012, 07:58 PM
Disassembled code with ILSpy:
// Kendo.Mvc.Extensions.QueryableExtensions
private static DataSourceResult CreateDataSourceResult(this IQueryable queryable, DataSourceRequest request, ModelStateDictionary modelState, LambdaExpression selector)
{
. . . .   

Should replace
List<AggregateDescriptor> aggregates = new List<AggregateDescriptor>();
    if (aggregates != null)
    {
        aggregates.AddRange(request.Aggregates);
    }

by
List<AggregateDescriptor> aggregates = new List<AggregateDescriptor>();
    if (request.Aggregates != null)
    {
        aggregates.AddRange(request.Aggregates);
    }

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 19 Oct 2012, 02:50 PM
Hello Stef,

Thank you for bringing this issue to our attention. I updated the source and the changes will be available for the next major release.

Kind Regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Stef Heyenrath
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or