Enables you to display custom images within appointments.
public event AppointmentImagesEventHandler InitAppointmentImages
Public Event InitAppointmentImages As AppointmentImagesEventHandler
The InitAppointmentImages event handler receives an argument of the AppointmentImagesEventArgs type. The following properties provide information specific to this event.
|Appointment||Gets the appointment related to the ASPxScheduler.InitAppointmentImages event.|
|ImageInfoList||Provides access to a collection of images used to paint an appointment in a scheduler's View.|
|ViewInfo||Provides access to the view information for an appointment when the ASPxScheduler.InitAppointmentImages event occurs.|
The InitAppointmentImages event occurs before an appointment is rendered when its images are initialized. This event lets you display custom images within appointments. The event parameter properties allow identification of the current appointment and specify the images to be displayed within the appointment.
For a full example, refer to the How to display images in appointments online example.
<dx:ASPxScheduler ID="ASPxScheduler1" runat="server" OnInitAppointmentImages="ASPxScheduler1_InitAppointmentImages" OnAppointmentInserting="ASPxScheduler1_AppointmentInserting"> <Storage> <Appointments> <Labels> <dx:AppointmentLabel Color="255, 194, 190" DisplayName="Important" MenuCaption="&Important" /> <dx:AppointmentLabel Color="168, 213, 255" DisplayName="Business" MenuCaption="&Business" /> </Labels> </Appointments> </Storage> </dx:ASPxScheduler>