RadCharts in ScrollViewer

4 posts, 0 answers
  1. Alexy
    Alexy avatar
    11 posts
    Member since:
    May 2009

    Posted 27 May 2009 Link to this post


    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.
  2. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 29 May 2009 Link to this post

    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,
    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.
  3. andrea bellagamba
    andrea  bellagamba avatar
    43 posts
    Member since:
    Jul 2009

    Posted 06 Oct 2009 Link to this post

    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?
  4. Velin
    Velin avatar
    391 posts

    Posted 09 Oct 2009 Link to this post

    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.


    All the best,
    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.
Back to Top