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

RadCharts in ScrollViewer

3 Answers 147 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Alexy
Top achievements
Rank 1
Alexy asked on 27 May 2009, 06:06 PM
Hey,

I am adding the Bar charts (RadChart controls) to the Grid, that is on the ViewScroller dynamicly, in code. I have about 30 charts, but when I try to add 30 at the same time, I have an error:

Error: Sys.InvalidOperationException: Runtime error 4008 in control
'ctl00_ContentPlaceHolder1_Xaml1', method: Layout cycle detected.
Layout could not complete.

Any idea? May be I need to add some delay b/w controls. I turned off the animation.

3 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 29 May 2009, 04:00 PM
Hello Alexy,

Indeed we are able to reproduce the problematic behavior in our local tests as well. We will forward this issue to our developers for further investigation but given the fact that Silverlight is notorious for having some "quirks" with respect to the "Layout Cycle Detected" exception, we cannot commit a timeframe for the resolution of this issue just yet.

As a workaround for the moment we would suggest you to load the chart instances in several batch operations thus avoiding the layout cycle problem. You can find attached a sample application that loads 30 charts with 100 items each on 3 steps.


Sincerely yours,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
andrea bellagamba
Top achievements
Rank 1
answered on 06 Oct 2009, 12:27 PM
I am having a similar problem,
 I have a page with 4 charts. the data is binded dynamically.
When the number of series increases, sometimes I get the Layout cycle error.

This started happening after I have installed the latest version of Silverlight 3 telerik controls.

Can you please help?
0
Velin
Telerik team
answered on 09 Oct 2009, 02:04 PM
Hi andrea,

This issue has been already fixed. Our local tests did not confirm that this problem is present in the Q2 SP1 release of the control.

Please, prepare and send us a sample project(including the referenced Telerik dlls) which we could further examine and provide a solution.

Thanks.

All the best,
Velin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart
Asked by
Alexy
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
andrea bellagamba
Top achievements
Rank 1
Velin
Telerik team
Share this question
or