Skip to main content
All docs
V25.1
  • SchedulerControl.CustomizeAppointmentFlyoutTemplate Event

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

    Namespace: DevExpress.XtraScheduler

    Assembly: DevExpress.XtraScheduler.v25.1.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.
    Resource

    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