Time Ruler length

4 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    24 posts
    Member since:
    Aug 2011

    Posted 25 Oct 2011 Link to this post

    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
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 25 Oct 2011 Link to this post

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

  3. DevCraft banner
  4. Jonathan
    Jonathan avatar
    24 posts
    Member since:
    Aug 2011

    Posted 25 Oct 2011 Link to this post

    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>

     

     

     

  5. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 25 Oct 2011 Link to this post

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

Back to Top