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
105
Disable Dragging Appointments in UltraMonthViewSingle
posted

Is there any way to completely disable dragging an appointment, even one that is part of a recurrence, around in the UltraMonthViewSingle?  If not, are there any events that can be used to achieve this goal?  I would also like to do this with the UltraWeekView and UltraDayView.  I know there is a BeforeAppointmentMoved event for the UltraDayView, but there does not seem to be one in other 2 controls.

  • 5
    posted

    I realize this is a very late reply, but for anyone else that may run across this issue, here is the solution that works across the board for those controls:

    http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=10085 

    In short, set the [Locked] property for each appointment to true. This will disable dragging of appointments. This will also disable editing of all appointments, so if you want to still have editing capabilities, then do the following:

    Hook to the BeforeDisplayAppointmentDialog event for your UltraCalendarInfo control. In the body of that method, set e.Appointment.Locked to false.

    Now, hook into the 
    AfterCloseAppointmentDialog event for your UltraCalendarInfo control. In the body of that method, set e.Appointment.Locked to true.

    Cheers,
    Nate