Layout broken when DayStartTime/DayEndTime changed

2 posts, 0 answers
  1. stas
    stas avatar
    4 posts
    Member since:
    Nov 2010

    Posted 23 Jan 2012 Link to this post

    Hello!

    I have a problem with updating of layout the ScheduleView control.

    i have a code:

        <Grid>
            <DockPanel LastChildFill="True">
                <StackPanel Orientation="Horizontal" DockPanel.Dock="Top" Margin="10" Height="25">
                    <Button Content="Change" Width="100" Click="Button_Click"></Button>
                </StackPanel>
                <telerik:RadScheduleView Name="schedule">
                    <telerik:RadScheduleView.ActiveViewDefinition>
                        <scheduleView:TimelineViewDefinition DayStartTime="10:00:00" DayEndTime="20:00:00" Orientation="Vertical" VisibleDays="1" MinTimeRulerExtent="100"></scheduleView:TimelineViewDefinition>
                    </telerik:RadScheduleView.ActiveViewDefinition>
                </telerik:RadScheduleView>
            </DockPanel>
        </Grid>

    and simple handler of click the 'Change' button:


    private void Button_Click(object sender, RoutedEventArgs e)
            {
                schedule.ActiveViewDefinition.DayStartTime = schedule.ActiveViewDefinition.DayStartTime.Add(new TimeSpan(1, 0, 0));
            }


    when i am trying to change the DayStartTime/DayEndTime value the height of ScheduleView displays wrong. Height of ScheduleView  just cuts. wihtout any updating of inner grid the ScheduleView control.

    Regards,
    Stas.
  2. stas
    stas avatar
    4 posts
    Member since:
    Nov 2010

    Posted 30 Jan 2012 Link to this post

    Hello!

    Is there is an one chance to get a little answer for my question?

    Thanks.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top