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
1225
Foce AppointmentDialog on ClicktoAdd
posted

I have a working custom dialog for editing appointments.  It is called in the BeforeDisplayAppointmentDialog event. 

The primary method for adding appointments in my app is by the user dragging "people" onto the calendar day view from an ultraGrid listing people with whom appointments can be made. On the drop event on the UltraDayView I call my CreateAppointment method which creates the appointment and displays my customer dialog. This all works well.

I would like to call my CreateAppoinment method when the user creates an appointment by clicking on the dayview; however, although there are before and after events for editing, resizing and deleting appointments, I do not see one for adding. 

How can I call my create appointment dialog when the user adds a new appointment using ClickToAdd on the DayView? Altenatively, if this is non-trivial,  I would like to disable the clickToAdd functionality of the UltraDayView.

 

  • 69832
    Verified Answer
    Offline posted

    The associated UltraCalendarInfo exposes a BeforeAppointmentAdded event. You can disable the click to add indicator by setting ShowClickToAddIndicator to false.