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

RadCartesianChart throws exception

1 Answer 119 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Auvo
Top achievements
Rank 1
Auvo asked on 15 May 2012, 07:54 AM
Hi,

I got following exception when I drop the the RadChartesianChart to the empty WPF project, move it and then resizing the chart size in design time?!

System.InvalidOperationException

Cannot set a property on object 'System.Windows.Media.TranslateTransform' because it is in a read-only state.

at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value) at Telerik.Windows.Controls.ChartView.CartesianAxis.UpdateAxisLine(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\CartesianAxis.cs:line 78 at Telerik.Windows.Controls.ChartView.LineAxis.UpdateUICore(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\LineAxis.cs:line 64 at Telerik.Windows.Controls.ChartView.PresenterBase.UpdateUI(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\PresenterBase.cs:line 204 at Telerik.Windows.Controls.ChartView.RadChartBase.UpdateUICore(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\RadChartBase.cs:line 461 at Telerik.Windows.Controls.ChartView.PresenterBase.UpdateUI(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\PresenterBase.cs:line 204 at Telerik.Windows.Controls.ChartView.RadChartBase.CallUpdateUI() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\RadChartBase.cs:line 1001 at Telerik.Windows.Controls.ChartView.RadChartBase.ArrangeOverride(Size finalSize) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\RadChartBase.cs:line 708

....

XAML:

 

 

 

<Grid>

 

 

 

 

<telerik:RadCartesianChart HorizontalAlignment="Left" Margin="12,12,0,0" Name="radCartesianChart1" VerticalAlignment="Top" Height="265" Width="453">

 

 

 

 

<telerik:RadCartesianChart.HorizontalAxis>

 

 

 

 

<telerik:CategoricalAxis />

 

 

 

 

</telerik:RadCartesianChart.HorizontalAxis>

 

 

 

 

<telerik:RadCartesianChart.VerticalAxis>

 

 

 

 

<telerik:LinearAxis />

 

 

 

 

</telerik:RadCartesianChart.VerticalAxis>

 

 

 

 

<telerik:BarSeries>

 

 

 

 

<telerik:BarSeries.DataPoints>

 

 

 

 

<telerik:CategoricalDataPoint Label="10" Value="10" />

 

 

 

 

<telerik:CategoricalDataPoint Label="20" Value="20" />

 

 

 

 

<telerik:CategoricalDataPoint Label="30" Value="30" />

 

 

 

 

</telerik:BarSeries.DataPoints>

 

 

 

 

</telerik:BarSeries>

 

 

 

 

</telerik:RadCartesianChart>

 

 

 

 

</Grid>

 



I'm using 2012.1.326.40 version of radControls

What could be the reason?

Regards,
Auvo

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 17 May 2012, 09:38 AM
Hi Auvo,

Thank you for reporting this issue, we have been able to reproduce it and it has been logged for our develoeprs to investigate and fix for future versions of the control.

We have updated your Telerik points for the feedback.

Kind regards,
Nikolay
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
ChartView
Asked by
Auvo
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or