RadScheduler timeline time range

4 posts, 0 answers
  1. Gus Oakes
    Gus Oakes avatar
    6 posts
    Member since:
    Aug 2009

    Posted 13 Apr 2010 Link to this post

    I am trying to get the timeline view to be limited to the "day hours". I only want it to display one day (I have disabled the navigation pane), and only the regular working hours. I am trying to replicate the "compare schedules" feature in Outlook. Another option would be if the timeline view would by default be scrolled to the start of the day.

    I have tried to set the DayStartTime and WorkDayStartTime both on the tag and through code in Page Load. It always just shows 12:00AM-11:30PM.

    How can I get this done? Here is the code I am using:

            RadScheduler1.SelectedView = SchedulerViewType.TimelineView 
            RadScheduler1.TimelineView.SlotDuration = New TimeSpan(0, 30, 0) 
            RadScheduler1.TimelineView.NumberOfSlots = 48 
            RadScheduler1.TimelineView.GroupingDirection = GroupingDirection.Vertical 
            RadScheduler1.ShowViewTabs = False 
            RadScheduler1.ShowNavigationPane = False 
            RadScheduler1.ReadOnly = True 
            RadScheduler1.OverflowBehavior = OverflowBehavior.Expand 
            RadScheduler1.ColumnWidth = 80 
            RadScheduler1.DayStartTime = New TimeSpan(8, 0, 0) 
            RadScheduler1.DayEndTime = New TimeSpan(18, 0, 0) 
            RadScheduler1.WorkDayStartTime = New TimeSpan(8, 0, 0) 
            RadScheduler1.WorkDayEndTime = New TimeSpan(18, 0, 0) 
            RadScheduler1.TimelineView.ColumnHeaderDateFormat = "h:mm" 

    Thanks for your help.

  2. T. Tsonev
    T. Tsonev avatar
    2794 posts

    Posted 14 Apr 2010 Link to this post

    Hello Gus,

    The DayStartTime and WorkDayStartTime properties are only effective in day and week view. I agree this can be a bit confusing. You need to set SelectedDate to the desired day start time, say "2010/04/01 08:00" and adjust the duration using SlotDuration and NumberOfSlots.

    I hope this helps.

    Tsvetomir Tsonev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Lennart
    Lennart avatar
    4 posts
    Member since:
    Aug 2012

    Posted 20 Nov 2013 Link to this post

    I have found that setting the SelectedDate in .js offsets all my appointments.

    they display under the incorrect column header, and sometimes they don't even render.
  4. Kate
    Kate avatar
    1898 posts

    Posted 25 Nov 2013 Link to this post

    Hello Lennart,

    Since this post is very old one can you please open a separate support ticket regarding this issue where you can attach a very simple page with the code that  you are currently using? Thus, I could test it from my side and assist you in the most efficient way in resolving this issue? Can you also clarify if there are any specific steps so I can replicate the issue?

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top