ASPxScheduler.AllowAppointmentDrag Event

Occurs when the scheduler initialize an appointment.

Namespace: DevExpress.Web.ASPxScheduler

Assembly: DevExpress.Web.ASPxScheduler.v19.2.dll

Declaration

public event AppointmentOperationEventHandler AllowAppointmentDrag
Public Event AllowAppointmentDrag As AppointmentOperationEventHandler

Event Data

The AllowAppointmentDrag event handler receives an argument of the AppointmentOperationEventArgs type. The following properties provide information specific to this event.

Property Description
Allow Gets or sets a value indicating whether an end-user is allowed to perform a particular action.
Appointment Gets the appointment for which the event was raised.
(Inherited from AppointmentEventArgs)
Recurring Gets or sets a value indicating if the appointment is recurring.

Remarks

The AllowAppointmentDrag event allows you to handle whether the appointment is allowed to be dragged.


ASPxScheduler1.OptionsCustomization.AllowAppointmentDrag = 
    UsedAppointmentType.Custom;
ASPxScheduler1.AllowAppointmentDrag += 
    new AppointmentOperationEventHandler(ASPxScheduler1_AllowAppointmentDrag);

// ...

void ASPxScheduler1_AllowAppointmentDrag(object sender, 
        AppointmentOperationEventArgs e) {
    if (user_id == "Sam") e.Allow = false;
}
See Also