It seems like the RadChart is not able to display more than 250 points. At that level it generates a "Layout cycle detected" error.
This occurs with your Q2 Sp1 and Q3 Sp1 releases.
Here is a simple example to generate the error, I would really appriciate your help:
public partial class Page : UserControl
{
// the error is generated for maxNumberOfPoints >249 -------------------------------------------
private int _maxNumberOfPoints = 249;
public Page()
{
InitializeComponent();
LoadData();
}
private void LoadData()
{
DataSeries splineAreaSeries = this.GetDataSeries();
splineAreaSeries.Definition = new SplineSeriesDefinition();
splineAreaSeries.Definition.ShowItemLabels = false;
splineAreaSeries.Definition.ShowItemToolTips = false;
_chart.DefaultView.ChartArea.DataSeries.Add(splineAreaSeries);
}
public DataSeries GetDataSeries()
{
Random random = new Random();
DataSeries serie = new DataSeries();
for (int i = 0; i < _maxNumberOfPoints; i++)
{
DataPoint dataPoint = new DataPoint();
dataPoint.YValue = random.Next(10, 1000);
dataPoint.XValue = i;
serie.Add(dataPoint);
}
return serie;
}
and the XAML:
<Grid x:Name="LayoutRoot">
<Controls:RadChart x:Name="_chart"></Controls:RadChart>
</Grid>
EXTRA INFO:
DLLs used Telerik.Windows.Controls, Telerik.Windows.Data. Telerik.Windows.Controls.Charting
the error does not occur with you version 2009.1.526.1020 of the DLLs
while it does occur with versions 2009.2.701.1020 and 2009.3.916.1030
thanks