Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SchedulerControl.CustomizeAppointmentFlyoutTemplate Event

Allows you to dynamically customize elements of appointment flyout rendered from HTML-CSS templates.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.dll

NuGet Package: DevExpress.Win.Scheduler

#Declaration

public event EventHandler<CustomizeAppointmentFlyoutTemplateEventArgs> CustomizeAppointmentFlyoutTemplate

#Event Data

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

Property Description
Appointment Gets an appointment for which the flyout is invoked.
HtmlElement Gets an HTML Element whose properties you need to customize.

#Remarks

The following code snippet applies a custom CSS style to an appointment within the HTML-CSS template:

private void schedulerControl1_CustomizeAppointmentFlyoutTemplate(object sender, DevExpress.XtraScheduler.CustomizeAppointmentFlyoutTemplateEventArgs args) {
    if ("Gym Training".Equals(args.Appointment.Subject)) {
        args.HtmlElement.FindElementById("content").ClassName = "Red";
    }
}
See Also