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

3 posts, 0 answers
  1. Narasimha Baliga
    Narasimha Baliga avatar
    5 posts
    Member since:
    Mar 2010

    Posted 10 May 2010 Link to this post

    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. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 13 May 2010 Link to this post

    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.
  3. Narasimha Baliga
    Narasimha Baliga avatar
    5 posts
    Member since:
    Mar 2010

    Posted 19 May 2010 Link to this post

    Dear Vladimir Milev,
     
      You are right, I have fixed the code to use numeric value.

    Regards
    Baliga
Back to Top