Layout cycle detected. Layout could not complete

4 posts, 0 answers
  1. Tim
    Tim avatar
    114 posts
    Member since:
    Aug 2011

    Posted 24 Jul 2012 Link to this post

    Hello telerik,

    in my current Silverlight 5 project I am using the SchduleView and unfortunately the program crashes EVERYTIME, when the user changes the size of the containing window. I tried to reduce the xaml to get this error and I'll get this error now with just a few lines of code and some mouse movements/ resizings of the window. Here's the code:
    <telerik:RadScheduleView x:Name="MinimapSchedule" Grid.Row="1" Grid.Column="1" MinAppointmentHeight="20"
                                                 NavigationHeaderVisibility="Collapsed" Height="20">
                    <telerik:RadScheduleView.ActiveViewDefinition>
                        <telerik:TimelineViewDefinition MinTimeRulerExtent="1" MaxTimeRulerExtent="Infinity" ShowTimeRuler="False"
                                                        StretchAppointments="True" StretchGroupHeaders="True" MinorTickLength="1month" MajorTickLength="1month">
                        </telerik:TimelineViewDefinition>
                    </telerik:RadScheduleView.ActiveViewDefinition>
                </telerik:RadScheduleView>

    That's all! A blank project with the latest telerik assemblies and this code in the MainPage.xaml - soon you'll get the "Layout cycle detected. Layout could not complete" exception! With soon I mean, that you have to change the window size a little bit. With this xaml the exception is not thrown on every resize but it is still easy; change the width, height, maximize, minimize, ...

    Is it possible to fix this? Currently I am definitly not able to use the Scheduler...
    Thanks a lot for any input and advice,
    Tim.

  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 26 Jul 2012 Link to this post

    Hi Tim,

    We are aware of this problem. It is logged in our PITS where you can follow its progress. We understand that this is a very serious issue and we will fix it for Q3 or one of the internal builds before that.

    Greetings,
    Boyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Jakkie Esschert van den
    Jakkie Esschert van den avatar
    61 posts
    Member since:
    Sep 2009

    Posted 30 Aug 2012 Link to this post

    It looks like the issue can be avoided by setting the VerticalScrollBarVisibility to true. We alway got this issue when the scheduler shrunk to a size where it needed a scrollbar, with the scrollbar always visible I haven't seen this issue again.

  5. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 04 Sep 2012 Link to this post

    Hello,

    The problem occur when the ScrollViewer show and disappear, so indeed this issue can be workarounded by making it show all the time by setting VerticalScrollBarVisibility to true.

    Kind regards,
    Boyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top