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

Cannot add to ItemMappingCollection after updating updateing to newest

2 Answers 15 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Kristjan Einarsson
Top achievements
Rank 1
Kristjan Einarsson asked on 11 Mar 2013, 11:24 AM
Hi.
I updated to the newest version of Telerik Dll's and I cannot add to ItemMappingCollection (Witch I could without problem)

code:
private void createSeriesMappings(int count, string value, string stackName)
       {
           for (int i = 0; i < count; i++)
           {
               SeriesMapping seriesMapping                                         = new SeriesMapping();
               seriesMapping.SeriesDefinition                                      = new StackedBarSeriesDefinition(stackName);
               seriesMapping.SeriesDefinition.ShowItemToolTips                     = true;
               seriesMapping.SeriesDefinition.ShowItemLabels                       = false;
               seriesMapping.SeriesDefinition.InteractivitySettings.HoverScope     = InteractivityScope.Series;
               seriesMapping.SeriesDefinition.InteractivitySettings.SelectionScope = InteractivityScope.Series;
               seriesMapping.ItemMappings.Add(new ItemMapping("[" + i + "]." + value, DataPointMember.YValue)); // this gives me the error
               chart.SeriesMappings.Add(seriesMapping);
           }
       }

the error
'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?)

How can I solve this ?

Best regards
Kristján


2 Answers, 1 is accepted

Sort by
0
Kristjan Einarsson
Top achievements
Rank 1
answered on 11 Mar 2013, 12:04 PM
Problem solved, switched to the telerik dll's from Binaries.NoXaml
0
Kristjan Einarsson
Top achievements
Rank 1
answered on 11 Mar 2013, 02:48 PM
Problem solved, switched to the telerik dll's from Binaries.NoXaml
Tags
Chart
Asked by
Kristjan Einarsson
Top achievements
Rank 1
Answers by
Kristjan Einarsson
Top achievements
Rank 1
Share this question
or