Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 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.CustomAppointmentFlyoutTemplateValue Event

    Allows you to pass values to elements bound to an appointment flyout’s data fields.

    Namespace: DevExpress.XtraScheduler

    Assembly: DevExpress.XtraScheduler.v25.1.dll

    NuGet Package: DevExpress.Win.Scheduler

    #Declaration

    public event EventHandler<CustomAppointmentFlyoutTemplateValueEventArgs> CustomAppointmentFlyoutTemplateValue

    #Event Data

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

    Property Description
    Appointment Gets an appointment for which the flyout is invoked.
    FieldName Gets the field name that is displayed in the Appointment‘s HTML-CSS template.
    FieldValue Gets the field value that is displayed in the Appointment‘s HTML-CSS template.
    Resource

    #Remarks

    The following code snippet creates the GymLocation data field in the appointment flyout’s HTML-CSS template and passes a value to it:

    private void schedulerControl1_AppointmentFlyoutShowing(object sender, DevExpress.XtraScheduler.AppointmentFlyoutShowingEventArgs args) {
        if ("GYM Training".Equals(args.FlyoutData.Appointment.Subject)) {
            args.HtmlTemplate.Template = "<div>The GYM is located here:</div><p>${GymLocation}</p>";
        }
    }
    
    private void schedulerControl1_CustomAppointmentFlyoutTemplateValue(object sender, DevExpress.XtraScheduler.CustomAppointmentFlyoutTemplateValueEventArgs args) {
        if ("GymLocation".Equals(args.FieldName)) {
            args.FieldValue = "312 W California Ave";
        }
    }
    
    See Also