Skip to main content

ASPxScheduler.AppointmentFormShowing Event

Occurs before the appointment editing window is created.

Namespace: DevExpress.Web.ASPxScheduler

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

Declaration

public event AppointmentFormEventHandler AppointmentFormShowing

Event Data

The AppointmentFormShowing event's data class is AppointmentFormEventArgs. The following properties provide information specific to this event:

Property Description
Action Gets the action to be accomplished via the appointment editing form. Inherited from AppointmentFormBaseEventArgs.
Appointment Gets an appointment related to the event. Inherited from AppointmentFormBaseEventArgs.
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from SchedulerFormEventArgs.
Container Gets or sets the object that will function as a container for an instance of the template used to render the appointment editing form.
FormTemplateUrl Gets or sets the Uniform Resource Locator (URL) of the form template. Inherited from SchedulerFormEventArgs.

Remarks

The appointment editing window is invoked by clicking the appointment in the scheduler view and selecting the Open command in the drop-down menu. Use this event to cancel editing by setting e.Cancel=true or to substitute the built-in editing form via the AppointmentFormEventArgs.Container property.

<dx:ASPxScheduler id="ASPxScheduler1" runat="server" 
    OnAppointmentFormShowing="ASPxScheduler1_AppointmentFormShowing" >
    ...
</dx:ASPxScheduler>
protected void ASPxScheduler1_AppointmentFormShowing(object sender, AppointmentFormEventArgs e) {
    e.Container = new MyAppointmentFormTemplateContainer((ASPxScheduler)sender);

}

Online Examples

See Also