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

Grouping aggregation issue in dynamic columns

1 Answer 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Karthikeyan
Top achievements
Rank 1
Karthikeyan asked on 27 Jan 2016, 05:25 AM

I am trying to create dynamic columns by creating column header and assigning the list of string values based on the index to the column databinding and while i am trying to add aggregation to the columns i am facing runtime issue as mentioned below.

"No generic method 'Sum' on type 'System.Linq.Enumerable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic."

I am unable to resolve this issue after number of workarounds.

 Kindly provide me a solution ASAP.

Regards,

Karthikeyan R

1 Answer, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 29 Jan 2016, 12:47 PM
Hello Karthikeyan,

Usually, the reason behind such error is that you can sum only Numeric types. Please, review the following article in order to get more information on the possible solution - Exception with Sum AggregateFunction.
If the aforementioned article does not resolve the issue at your end would it be possible to provide more details on your exact setup. Sending a sample project would be the best approach as we would be able to have a more detailed look and further investigate the issue.

I am looking forward to your reply, Karthikeyan.

Regards,
Stefan Nenchev
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
GridView
Asked by
Karthikeyan
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Share this question
or