Multiple timeworks. How to??

2 posts, 0 answers
  1. Javier
    Javier avatar
    2 posts
    Member since:
    Aug 2008

    Posted 21 Jun 2012 Link to this post

    Hi. I'm writing a medical schedule system and I am using the Winforms Scheduler control. Each doctor has diferent working days and each day can have several timework.
     For instance, in Mondays Doctor A works from 9:00AM to 12:00AM in the morning and from 16:00PM to 18:00PM  in the afternoon, On Tuesday, Wednesday and thursday he doesn't work and in Friday he works from 12:00AM to 14:00AM in the morning and from 18:00PM to 20:00PM in the afternoon.
    I would like to draw that working hours in the scheduler control and  disable every hour out of his working hours so the user can't create an appointment in that time.

    How can I do that??

  2. Stefan
    Stefan avatar
    2911 posts

    Posted 26 Jun 2012 Link to this post

    Hello Javier,

    Thank you for writing.

    In order to disable a cell in RadScheduler you need to use the CellFormatting event. Attached you can find a small sample demonstrating this. Please give it a try and let me know how it works for you.
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top