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

Need to skip over non-working time in timeline view

1 Answer 76 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mark Rabjohn
Top achievements
Rank 1
Mark Rabjohn asked on 02 Mar 2010, 05:58 PM
Hi,

I have been evaluating the Scheduler control for a client. The specific bit I'm interested in is the time line with time across, and resources down the side.

The client requires multiple days to be visible, but still have control over timing, and I have found that half hour resolution with lot's of time slots serves this purpose quite well.

The problem is that they only work from 8am to 6pm and thus, most of the time is irrelevant to their operations, I can change the colour of dead time, but that still leaves 2/3 of the screen dedicated to irrelevant time. I have also tried hiding cells, but that breaks drag and drop, I also can't work out how to hide the column headers.

The question is, can i get the timeline to skip non-working time, as the day view and week view does?

Best Regards,

Mark

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 05 Mar 2010, 01:29 PM
Hello Mark,

Yes, you can make RadScheduler skip hours in Timeline view when navigating. For example, try the following code:

protected void RadScheduler1_NavigationComplete(object sender, SchedulerNavigationCompleteEventArgs e) 
   
       if (RadScheduler1.SelectedView == SchedulerViewType.TimelineView) 
       
           if (e.Command == SchedulerNavigationCommand.NavigateToNextPeriod) 
               RadScheduler1.SelectedDate = RadScheduler1.SelectedDate.AddHours(14); 
           else if (e.Command == SchedulerNavigationCommand.NavigateToPreviousPeriod) 
               RadScheduler1.SelectedDate = RadScheduler1.SelectedDate.AddHours(-14);  
       }  
   }

The argument for AddHours() method will vary depending your specific scenario.

However, RadScheduler cannot render Timeline view with missing hours in between. For example, if you need to display slots for the following hours: 8,9,10,11,12, 14, 15, 16, 17 (one hour lunch break starting at 13:00), then this is not possible.


All the best,
Peter
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.
Tags
Scheduler
Asked by
Mark Rabjohn
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or