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

RadScheduler timeline time range

3 Answers 272 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Gus Oakes
Top achievements
Rank 1
Gus Oakes asked on 13 Apr 2010, 09:28 PM

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.






3 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 14 Apr 2010, 09:07 AM
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.

Greetings,
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.
0
Lennart
Top achievements
Rank 2
answered on 20 Nov 2013, 03:21 PM
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.
0
Kate
Telerik team
answered on 25 Nov 2013, 11:34 AM
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?

Regards,
Kate
Telerik
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.
Tags
Scheduler
Asked by
Gus Oakes
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Lennart
Top achievements
Rank 2
Kate
Telerik team
Share this question
or