ASPxScheduler.AllowAppointmentDragBetweenResources Event
Occurs when the scheduler initialize an appointment and the SchedulerControl.AllowAppointmentDragBetweenResources property is set to Custom.
Namespace: DevExpress.Web.ASPxScheduler
Assembly: DevExpress.Web.ASPxScheduler.v24.1.dll
NuGet Package: DevExpress.Web.Scheduler
Declaration
Event Data
The AllowAppointmentDragBetweenResources event's data class is AppointmentOperationEventArgs. 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.AllowAppointmentDragBetweenResources topic, to learn more.
ASPxScheduler1.OptionsCustomization.AllowAppointmentDragBetweenResources =
UsedAppointmentType.Custom;
ASPxScheduler1.AllowAppointmentDragBetweenResources +=
new AppointmentOperationEventHandler(ASPxScheduler1_AllowAppointmentDragBetweenResources);
// ...
void ASPxScheduler1_AllowAppointmentDragBetweenResources(object sender,
AppointmentOperationEventArgs e) {
if (user_id == "Sam") e.Allow = false;
}
See Also