I've been struggling with this error for a few days now and am really really stumped.
I have a XAML page that loads just fine in VS2010 Designer and also in Expression Blend. I needed to add a Telerik RadChart control to that page and within our application, we had a chart all set up.
All I did was copy the chart from the original XAML and pasted it into my new XAML page. Once I did that, the XAML does not open up in EB anymore nor does it open up in VS2010 Designer. The error I get is the standard:
ArgumentException was thrown due to document error: Value does not fall within the expected range.
Once I remove the RadChart that I pasted into the XAML, everything goes back to being normal.
This is the RadChart that I pasted into the XAML.
Any help would be greatly appreciated.
<telerikChart:RadChart ItemsSource="{Binding Path=Securities}" UseDefaultLayout="False" Height="250" Width="250">
<telerikChart:RadChart.PaletteBrushes>
<SolidColorBrush Color="#ffd200" />
<SolidColorBrush Color="#6c91b6" />
<SolidColorBrush Color="#012141" />
<SolidColorBrush Color="#ffb862" />
<SolidColorBrush Color="#ff8600" />
<SolidColorBrush Color="#828282" />
<SolidColorBrush Color="#a65151" />
<SolidColorBrush Color="#7e0001" />
<SolidColorBrush Color="#63b16e" />
<SolidColorBrush Color="#0f631b" />
</telerikChart:RadChart.PaletteBrushes>
<telerikChart:RadChart.SeriesMappings>
<telerikCharting:SeriesMapping x:Name="benchmarkPieChart" ChartAreaName="PieChartArea" >
<telerikCharting:SeriesMapping.FilterDescriptors>
<telerikCharting:ChartFilterDescriptor Member="BenchmarkSsmWeight"
Operator="IsGreaterThan"
Value="0.005" />
</telerikCharting:SeriesMapping.FilterDescriptors>
<telerikCharting:SeriesMapping.SeriesDefinition>
<telerikCharting:PieSeriesDefinition ShowZeroValuesLabels="False" ShowItemToolTips="True" ShowItemLabels="True"></telerikCharting:PieSeriesDefinition>
</telerikCharting:SeriesMapping.SeriesDefinition>
<telerikCharting:SeriesMapping.ItemMappings>
<telerikCharting:ItemMapping DataPointMember="XCategory" FieldName="BenchmarkName"></telerikCharting:ItemMapping>
<telerikCharting:ItemMapping DataPointMember="YValue" FieldName="BenchmarkSsmWeight" ></telerikCharting:ItemMapping>
<telerikCharting:ItemMapping DataPointMember="Tooltip" FieldName="BenchmarkName"></telerikCharting:ItemMapping>
<telerikCharting:ItemMapping DataPointMember="LegendLabel" FieldName="BenchmarkName"></telerikCharting:ItemMapping>
</telerikCharting:SeriesMapping.ItemMappings>
</telerikCharting:SeriesMapping>
</telerikChart:RadChart.SeriesMappings>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<telerikCharting:ChartArea Grid.Column="0" x:Name="PieChartArea" Margin="5,5,5,5" HorizontalAlignment="Left" HorizontalContentAlignment="Left" VerticalAlignment="Top"/>
<telerikCharting:ChartLegend Grid.Column="1" x:Name="BenchmarkPieLegend" Header="" VerticalAlignment="Top" LegendItemStyle="{StaticResource ChartLegendItemStyle}" Background="Transparent" BorderBrush="Transparent" FontSize="8"/>
</Grid>
</telerikChart:RadChart>