Break hour

3 posts, 0 answers
  1. fer
    fer avatar
    26 posts
    Member since:
    Feb 2009

    Posted 01 Oct 2009 Link to this post

    Hi, how could I show non working hours between working hours as a break time?

    For example , if my work day is : 9:13 - 15:18. So, I want to show hours between 13-15 with a different style (as non working hours) because it is actually what it is.

    is it possible?

    thanks a lot!

    fernando
  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 01 Oct 2009 Link to this post

    What is it that you're trying to style? The appointment or the time-slot?

    If it's the appointment you can style it in the Scheduler's AppointmentDataBound event and change the appointment's background color or apply a style. I don't know if you can style the time-slots themselves.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 01 Oct 2009 Link to this post

    Ok, it looks like you can style the time slot section. You just need to handle the Scheduler's TimeSlotCreated event.

    From there I guess something like this: "e.TimeSlot.Control.BackColor" would set the color for you or you could just set a style using "e.TimeSlot.CssClass" to change the color.

    Hope that helps.
Back to Top