Skip to main content
All docs
V24.2

SchedulerControl.CustomAppointmentFlyoutTemplateValue Event

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

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.dll

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.

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