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

Layout broken when DayStartTime/DayEndTime changed

1 Answer 35 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
stas
Top achievements
Rank 1
stas asked on 23 Jan 2012, 01:04 PM
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.

1 Answer, 1 is accepted

Sort by
0
stas
Top achievements
Rank 1
answered on 30 Jan 2012, 01:10 PM
Hello!

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

Thanks.
Tags
ScheduleView
Asked by
stas
Top achievements
Rank 1
Answers by
stas
Top achievements
Rank 1
Share this question
or