Cannot add to ItemMappingCollection after updating updateing to newest

3 posts, 0 answers
  1. Kristjan Einarsson
    Kristjan Einarsson avatar
    95 posts
    Member since:
    Jan 2010

    Posted 11 Mar 2013 Link to this post

    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. Kristjan Einarsson
    Kristjan Einarsson avatar
    95 posts
    Member since:
    Jan 2010

    Posted 11 Mar 2013 Link to this post

    Problem solved, switched to the telerik dll's from Binaries.NoXaml
  3. Kristjan Einarsson
    Kristjan Einarsson avatar
    95 posts
    Member since:
    Jan 2010

    Posted 11 Mar 2013 Link to this post

    Problem solved, switched to the telerik dll's from Binaries.NoXaml
Back to Top