Telerik.Windows.Controls.Charting.ItemMappingCollection does not contain a definition for 'Add'

4 posts, 0 answers
  1. balaji
    balaji avatar
    11 posts
    Member since:
    Jul 2010

    Posted 02 Aug 2010 Link to this post

    Hi People,
    Am using Silverlight 3 Trails Hotfix Downloaded from Telerik site.
    Some how am not able to access the Marked Zone class in Telerik.Windows.Charting.dll.
    I have also used the Below code to draw a static line as custom marker.
    But am getting error as below.

     

    SeriesMapping ValMapping = new SeriesMapping();

     

     

    LineSeriesDefinition lineDefinition = new LineSeriesDefinition();

     

    lineDefinition.ShowPointMarks =

    true;

     

    lineDefinition.ShowItemLabels =

    false;

     

    lineDefinition.ShowItemToolTips =

    true;

     

    ValMapping.SeriesDefinition = lineDefinition;

    ValMapping.ItemMappings.Add(

    new ItemMapping("XValue", DataPointMember.XValue));

     

    ValMapping.ItemMappings.Add(

    new ItemMapping("YValue", DataPointMember.YValue));

     

     

     

    ValMapping.CollectionIndex = 1;

    RadChart1.SeriesMappings.Add(ValMapping);

    The Bolded lines are the errored line.

    My Version of the Dll is  2010.2.714.1030
    Else Can any one give the exact archive of the dll to download.
    Thanks
    Regards
    N.Balaji

    Telerik.Windows.Controls.Charting.ItemMappingCollection' does not contain a definition for 'Add' and no extension method 'Add' accepting a first argument of type 'Telerik.Windows.Controls.Charting.ItemMappingCollection' could be found (are you missing a using directive or an assembly reference?).

  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 02 Aug 2010 Link to this post

    Hello balaji,

    Make sure you have updated the Telerik.Windows.Controls.dll and Telerik.Windows.Data.dll assemblies from the hotfix as well as they are required for the correct operation of the chart control.


    Greetings,
    Freddie
    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. balaji
    balaji avatar
    11 posts
    Member since:
    Jul 2010

    Posted 02 Aug 2010 Link to this post

    thanks freddie its working
  4. mohit
    mohit avatar
    1 posts
    Member since:
    Jun 2012

    Posted 14 Oct 2010 Link to this post

    Thanks guys!! it solved this issue for me too... Just make sure when you download hotfixs, right version of silverlight app is set in properties of your silverlight project.
Back to Top