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.
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.