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

Layout cycle detected. Layout could not complete

3 Answers 862 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tim
Top achievements
Rank 1
Tim asked on 24 Jul 2012, 03:38 PM
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.

3 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 26 Jul 2012, 01:51 PM
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.

0
Jakkie Esschert van den
Top achievements
Rank 1
answered on 30 Aug 2012, 11:55 AM

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.

0
Boyan
Telerik team
answered on 04 Sep 2012, 08:49 AM
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.

Tags
ScheduleView
Asked by
Tim
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Jakkie Esschert van den
Top achievements
Rank 1
Share this question
or