Hello Telerik team,
I've error when I'm using Aggregate function in Column Grid.
The error message like below in stack trace. When I use Count Function everything work fine but when I use Sum,Min,Max function error occurs. My EmployeeDeduction has data type is Money in SQL server 2008. I think it's a bug of Aggregate Sum function in Q3.
I've error when I'm using Aggregate function in Column Grid.
<telerikGridView:GridViewDataColumn HeaderTextAlignment="Center" TextAlignment="Right" DataMemberBinding="{Binding EmployeeDeduction}"> |
<telerikGridView:GridViewDataColumn.AggregateFunctions> |
<telerikData:SumFunction FunctionName="EmployeeDeduction" SourceField="EmployeeDeduction" ResultFormatString="{}{0:c}" /> |
</telerikGridView:GridViewDataColumn.AggregateFunctions> |
</telerikGridView:GridViewDataColumn> |
The error message like below in stack trace. When I use Count Function everything work fine but when I use Sum,Min,Max function error occurs. My EmployeeDeduction has data type is Money in SQL server 2008. I think it's a bug of Aggregate Sum function in Q3.
Message: Unhandled Error in Silverlight Application |
Code: 4004 |
Category: ManagedRuntimeError |
Message: System.ArgumentException: Invalid property or field - 'EmployeeDeduction' for type: Entity |
at Telerik.Windows.Data.Expressions.MemberAccessTokenExtensions.CreateMemberAccessExpression(IMemberAccessToken token, Expression instance) |
at Telerik.Windows.Data.Expressions.ExpressionFactory.MakeMemberAccess(Expression instance, String memberName) |
at Telerik.Windows.Data.Expressions.ExpressionFactory.MakeMemberAccess(Expression instance, String memberName, Boolean liftMemberAccessToNull) |
at Telerik.Windows.Data.Expressions.PropertyAccessExpressionBuilder.CreateMemberAccessExpression() |
at Telerik.Windows.Data.Expressions.EnumerableSelectorAggregateFunctionExpressionBuilder.CreateMemberSelectorExpression() |
at Telerik.Windows.Data.Expressions.EnumerableSelectorAggregateFunctionExpressionBuilder.CreateAggregateExpression() |
at Telerik.Windows.Data.EnumerableSelectorAggregateFunction.CreateAggregateExpression(Expression enumerableExpression) |
at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.<ProjectionPropertyValueExpressions>b__3(AggregateFunction f) |
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() |
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) |
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) |
at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateProjectionInitExpression() |
at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateAggregateFunctionsProjectionMemberBinding() |
at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.<CreateMemberBindings>d__0.MoveNext() |
at System.Linq.Buffer`1..ctor(IEnumerable`1 source) |
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) |
at System.Linq.Expressions.ReadOnlyCollectionExtensions.ToReadOnlyCollection[T](IEnumerable`1 sequence) |
at System.Linq.Expressions.Expression.MemberInit(NewExpression newExpression, IEnumerable`1 bindings) |
at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateSelectBodyExpression() |
at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateSelectExpression() |
at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilderBase.CreateQuery() |
at Telerik.Windows.Data.QueryableExtensions.Aggregate(IQueryable source, IEnumerable`1 aggregateFunctions) |
at Telerik.Windows.Controls.GridView.GridViewDataControl.CreateAggregateResults() |
at Telerik.Windows.Controls.GridView.GridViewDataControl.CalculateAggregates() |
at Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass37.<Bind>b__36() |
at Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(FrameworkElement frameworkElement, Action action) |
at Telerik.Windows.Controls.GridView.GridViewDataControl.Bind(Object newValue) |
at Telerik.Windows.Controls.GridView.GridViewDataControl.OnApplyTemplate() |
at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget) |
Line: 57 |
Char: 13 |
Code: 0 |