The DevExpress Scheduler allows you to use templates to customize the appearance of individual appointments:
- HorizontalAppointmentTemplate - applied to all-day appointments that span an entire day or multiple days (displayed horizontally in the all-day panel).
- VerticalAppointmentTemplate - applied to other appointments (displayed vertically).
These properties obtain a DxSchedulerAppointmentView object that contains information about appointment settings. To access this object, use the template's context parameter.
To define appointment appearance, use HTML markup within the HorizontalAppointmentTemplate and VerticalAppointmentTemplate tags.
|Sunday, February 28||Monday, March 1||Tuesday, March 2||Wednesday, March 3||Thursday, March 4||Friday, March 5||Saturday, March 6|
The DevExpress Blazor Scheduler allows you to add custom properties to appointments, labels, and status items. To create these custom elements, define custom fields in source objects and add them to the CustomFieldMappings collection. In this demo, an appointment’s source object includes an Accepted custom field that is mapped to the IsAccepted appointment property. The property value is used in the HorizontalAppointmentTemplate and VerticalAppointmentTemplate to change appointment appearance.
The Scheduler also allows you to customize the appointment edit form as needed. Use the following properties to construct your custom form layout:
- AppointmentFormLayout - the layout of the pop-up form that appears when you create an appointment and click the expand button or when you edit an appointment.
- AppointmentCompactFormLayout - the layout of the compact form that appears when you create an appointment.
The Scheduler ships with a set of predefined form layout items (DxSchedulerSubjectFormLayoutItem, DxSchedulerStartDateFormLayoutItem, DxSchedulerStartTimeFormLayoutItem, etc). You can also add a custom item (DxSchedulerCustomFormLayoutItem) and define its Template property. In this demo, custom layout items are used to display the IsAccepted property’s editor and its validation summary.
|Monday, March 1||Tuesday, March 2||Wednesday, March 3||Thursday, March 4||Friday, March 5|