ASPxScheduler.AllowAppointmentResize Event

Occurs when the scheduler initialize an appointment and the SchedulerOptionsCustomization.AllowAppointmentResize property is set to Custom.

Namespace: DevExpress.Web.ASPxScheduler

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

Declaration

public event AppointmentOperationEventHandler AllowAppointmentResize
Public Event AllowAppointmentResize As AppointmentOperationEventHandler

Event Data

The AllowAppointmentResize 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

Refer to the SchedulerControl.AllowAppointmentResize topic, to learn more.


ASPxScheduler1.OptionsCustomization.AllowAppointmentResize = UsedAppointmentType.Custom;
...

protected void ASPxScheduler1_AllowAppointmentResize(object sender, AppointmentOperationEventArgs e)
{
    if (e.Appointment.Subject == "Test") {
        e.Allow = false;
    }
}
See Also