SchedulerSettings.PrepareAppointmentFormPopupContainer Property

Enables you to perform custom actions when the pop-up container for the appointment editing form is prepared for display.

Namespace: DevExpress.Web.Mvc

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

Declaration

public ASPxSchedulerPrepareFormPopupContainerHandler PrepareAppointmentFormPopupContainer { get; set; }
Public Property PrepareAppointmentFormPopupContainer As ASPxSchedulerPrepareFormPopupContainerHandler

Property Value

Type Description
ASPxSchedulerPrepareFormPopupContainerHandler

A method to which custom processing is delegated.

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.

Example

settings.PrepareAppointmentFormPopupContainer += (s, 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);
    ...
    e.Popup.PopupHorizontalOffset = -100;
    e.Popup.PopupVerticalOffset = -100;
    e.Popup.PopupHorizontalAlign = DevExpress.Web.ASPxClasses.PopupHorizontalAlign.WindowCenter;
    e.Popup.PopupVerticalAlign =  DevExpress.Web.ASPxClasses.PopupVerticalAlign.BottomSides;
};

See Also