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

Time Ruler length

3 Answers 86 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 25 Oct 2011, 10:40 AM
Is there a way of maintaining the full stretch of the time ruler when the day length is less than 24 hours? I have tried a number of combinations of MinTimeRulerExtent and MaxTimeRulerExtent but so far no success...

Tia,

Jonathan

3 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 25 Oct 2011, 11:36 AM
The timeruler will automatically stretch if MinTimeRulerExtent is less or equal to the available space and MaxTimeRulerExtent is larger. For example, if you set MinTimeRulerExtent=200 and MaxTimeRulerExtent=2000 the timeruler will automatically stretch to fill the available space if it is between 200 and 2000 pixels. When the available space becomes less than 200 pixels a scrollbar will appear. If the available space becomes more than 2000 pixels the timeruler will no longer stretch.

All the best,
Valeri Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jonathan
Top achievements
Rank 1
answered on 25 Oct 2011, 11:50 AM
Perhaps I am not referring to the correct part of the control... in the Timeline view, above the ticks and below the bar containing the datetime picker and the view selection buttons, there is a gray bar containing the date which stretches across the visible calendar. If my Timeline view is 1 day but I set the visible hours to be - for example - 06:00 to 20:00, that gray bar resizes itself and no longer stretches across the visible calendar. It isn't the same as the scroll bar at the bottom of the control. Here's some simple xaml to display the behaviour:

Jonathan

 

<telerik:RadScheduleView Name="radScheduleView1" 
                         AppointmentsSource="{Binding Appointments}"
                         HorizontalAlignment="Stretch" 
                         VerticalAlignment="Stretch">
    <telerik:RadScheduleView.ViewDefinitions>
        <telerik:TimelineViewDefinition VisibleDays="1"
                                        DayStartTime="06:00:00" 
                                        DayEndTime="20:00:00" />
    </telerik:RadScheduleView.ViewDefinitions>
</telerik:RadScheduleView>

 

 

 

0
Rosi
Telerik team
answered on 25 Oct 2011, 01:58 PM
Hi Jonathan,

This is a bug in RadScheduleView control and the fix for this bug will be included in our next internal build

Regards,
Rosi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ScheduleView
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Jonathan
Top achievements
Rank 1
Rosi
Telerik team
Share this question
or