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

"No method 'Sum' on type 'System.Linq.Enumerable' is compatible with the supplied arguments."

2 Answers 19 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Narasimha Baliga
Top achievements
Rank 1
Narasimha Baliga asked on 10 May 2010, 09:36 AM
Hi Guys

When I bind the chart with a "datatable" and I try to apply a ChartAggregateFunction, as below

mapping1.ItemMappings.Add(

new ItemMapping(MeasureQuit, DataPointMember.YValue, ChartAggregateFunction.Sum));

I get this error - "No method 'Sum' on type 'System.Linq.Enumerable' is compatible with the supplied arguments."

Any help?

Regards
Baliga

 

2 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 13 May 2010, 08:56 AM
Hello Narasimha Baliga,

What is the type of the field in the datatable contained in MeasureQuit parameter? It should be numeric.

Greetings,
Vladimir Milev
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Narasimha Baliga
Top achievements
Rank 1
answered on 19 May 2010, 12:22 PM
Dear Vladimir Milev,
 
  You are right, I have fixed the code to use numeric value.

Regards
Baliga
Tags
Chart
Asked by
Narasimha Baliga
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Narasimha Baliga
Top achievements
Rank 1
Share this question
or