Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1040
UltraDayView disable time
posted

How to disable timeslots in UltraDayView.

(v13.2)

ex) 12:00 ~ 7:59 off (Enable false)

Parents
No Data
Reply
  • 21795
    Offline posted

    Hello Min,

    Thank you for posting in our forum.

    Right now UltraDayView does not expose a property or method allowing you to disable particular time slot. However you can achieve this by applying some custom appearance to the time slots you need. Then, depending of your application scenario you may need to handle some events. For example:

    • If you do not want the disabled slots to be selectable you may handle BeforeTimeSlotSelectionChanged. In the event handler you will need to check if the new time slot is in the disabled interval. If so cancel the event;

    • If you do not want the user to be able to add appointment to disabled slots you may handle BeforeDisplayAppointmentDialog of the UltraCalendarInfo. If the appointment is in the disabled time slot cancel the event.

    In the attached sample project I have implement this approach. Please check my sample and let me know if this is what you are looking for of if I am missing something.

    CAS-171010-M6L1J3.zip
Children
No Data