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

Display working hours

2 Answers 238 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Sarah
Top achievements
Rank 1
Sarah asked on 09 Mar 2012, 02:50 PM
Hi!

I was wondering if it was possible to only display working hours in the scheduler instead of the whole day?

Thanks.

Sarah

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Todorov
Telerik team
answered on 13 Mar 2012, 10:50 AM
Hi Sarah,

Thank you for your question.

Yes, it is possible to achieve this. To do so, you need to set the RulerStartScale and RulerEndScale properties of your current view:
SchedulerDayView dayView = this.radScheduler1.GetDayView();
dayView.RulerStartScale = dayView.WorkTime.Start.Hours;
dayView.RulerEndScale= dayView.WorkTime.End.Hours;

You can also set the same settings to the SchedulerWeekView:
SchedulerWeekView weekView = this.radScheduler1.GetWeekView();
weekView.RulerStartScale = weekView.WorkTime.Start.Hours;
weekView.RulerEndScale = weekView.WorkTime.End.Hours;

More information on this topic can be found in this help article.

I hope this helps. Do not hesitate to write back in case you have any further questions.

All the best,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Sarah
Top achievements
Rank 1
answered on 14 Mar 2012, 09:47 AM
Hi, 

Works perfectly, thank you for answering.

Sarah
Tags
Scheduler and Reminder
Asked by
Sarah
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Sarah
Top achievements
Rank 1
Share this question
or