ASPxScheduler.PrepareAppointmentFormPopupContainer Event
Occurs when the pop-up container for the Appointment Form is prepared for display.
Namespace: DevExpress.Web.ASPxScheduler
Assembly: DevExpress.Web.ASPxScheduler.v24.1.dll
NuGet Package: DevExpress.Web.Scheduler
Declaration
public event ASPxSchedulerPrepareFormPopupContainerHandler PrepareAppointmentFormPopupContainer
Event Data
The PrepareAppointmentFormPopupContainer event's data class is ASPxSchedulerPrepareFormPopupContainerEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Popup | Provides access to the popup window containing the form. |
Remarks
Handle the PrepareAppointmentFormPopupContainer event to modify the pop-up container of the Appointment Form. This container is available using the ASPxSchedulerPrepareFormPopupContainerEventArgs.Popup property of the event arguments.
For example, you can easily modify the caption, back color and paddings of the form using the following code:
protected void ASPxScheduler1_PrepareAppointmentFormPopupContainer(object sender,
ASPxSchedulerPrepareFormPopupContainerEventArgs e) {
e.Popup.HeaderText = "You can edit the details about a meeting here";
e.Popup.Width = Unit.Pixel(800);
e.Popup.BackColor = Color.Wheat;
e.Popup.ContentStyle.Paddings.Padding = Unit.Pixel(0);
}
The resulting form is shown in the picture below: