Declined
Last Updated: 15 Jul 2021 07:22 by ADMIN
Daniel
Created on: 04 Jan 2017 17:05
Category: UI for ASP.NET MVC
Type: Feature Request
1
Support entities with static properties when using ToDataSourceResult. Currently throws ArgumentException.
Static property requires null instance, non-static property requires non-null instance.
Parameter name: expression

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: Static property requires null instance, non-static property requires non-null instance.
Parameter name: expression

[ArgumentException: Static property requires null instance, non-static property requires non-null instance.
Parameter name: expression]
   System.Linq.Expressions.Expression.Property(Expression expression, PropertyInfo property) +4376691
   System.Linq.Expressions.Expression.MakeMemberAccess(Expression expression, MemberInfo member) +90
   Kendo.Mvc.Infrastructure.Implementation.Expressions.MemberAccessTokenExtensions.CreateMemberAccessExpression(IMemberAccessToken token, Expression instance) +122
   Kendo.Mvc.Infrastructure.Implementation.Expressions.ExpressionFactory.MakeMemberAccess(Expression instance, String memberName) +107
   Kendo.Mvc.Infrastructure.Implementation.Expressions.PropertyAccessExpressionBuilder.CreateMemberAccessExpression() +70
   Kendo.Mvc.Infrastructure.Implementation.Expressions.MemberAccessExpressionBuilderBase.CreateLambdaExpression() +17
   Kendo.Mvc.Infrastructure.Implementation.SortDescriptorCollectionExpressionBuilder.Sort() +120
   Kendo.Mvc.Extensions.QueryableExtensions.CreateDataSourceResult(IQueryable queryable, DataSourceRequest request, ModelStateDictionary modelState, Func`2 selector) +888
   Kendo.Mvc.Extensions.QueryableExtensions.ToDataSourceResult(IQueryable`1 enumerable, DataSourceRequest request, Func`2 selector) +58
2 comments
ADMIN
Maria Ivanova
Posted on: 15 Jul 2021 07:22

Hi Folks,

Due to lack of provided further details, the feature request can not be processed and will be closed.

Please feel free to submit a new one in case other questions arise.

 

Kind Regards,
Maria Veledinova
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Angel Petrov
Posted on: 03 Jun 2021 11:32

Hello,

I am sorry to say but the provided information is not sufficient for us to validate the request. Can you please provide an example in which this problem is observed alongside a more detail explanation on how to reproduce it and what is the general idea?

Regards,
Angel Petrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.