Hi everyone,
How does one disable the drag-drop for appointments?
Please help, thank you.
Subscribe to the BeforeAppointmentsMoved in the UltraDayView (or WeekView, or MonthView), and cancel the event:
OnFormLoad
{
_dayView.BeforeAppointmentsMoved += OnBeforeAppointmentMoved;
}
private static void OnBeforeAppointmentMoved(object sender, CancelableAppointmentsEventArgs e){ e.Cancel = true;}
Hope it helps,
Emanuel
I see BeforeAppointmentEdit for the UltraMonthViewSingle control but no BeforeAppoitmentMoved.
Does anyone know how to disable this in the UltraMonthViewSingle view
I have tried hooking into the various events that seem like they would have some impact (like the drag drop events) but no luck
I am using mostly UltraDayView, and for that control it works the way I described in the previous post.
For the UltraMonthViewSingle I can see an ActivitiesDragCompleteEvent. Maybe you can check it to see if it works for you. If this is not the case, hopefully someone more experienced will answer your question.
Sorry I cannot be more useful.