Display working hours

3 posts, 1 answers
  1. Sarah
    Sarah avatar
    4 posts
    Member since:
    Mar 2012

    Posted 09 Mar 2012 Link to this post


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


  2. Answer
    Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 13 Mar 2012 Link to this post

    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 >>
  3. Sarah
    Sarah avatar
    4 posts
    Member since:
    Mar 2012

    Posted 14 Mar 2012 Link to this post


    Works perfectly, thank you for answering.

Back to Top