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

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

3 Answers 89 Views
Chart
This is a migrated thread and some comments may be shown as answers.
balaji
Top achievements
Rank 1
balaji asked on 02 Aug 2010, 11:05 AM
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?).

3 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 02 Aug 2010, 11:41 AM
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
0
balaji
Top achievements
Rank 1
answered on 02 Aug 2010, 11:49 AM
thanks freddie its working
0
mohit
Top achievements
Rank 1
answered on 14 Oct 2010, 06:29 AM
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.
Tags
Chart
Asked by
balaji
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
balaji
Top achievements
Rank 1
mohit
Top achievements
Rank 1
Share this question
or