The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxScheduler.InitAppointmentImages Event

Enables you to display custom images within appointments.

Namespace: DevExpress.Web.ASPxScheduler

Assembly: DevExpress.Web.ASPxScheduler.v19.2.dll

Declaration

public event AppointmentImagesEventHandler InitAppointmentImages
Public Event InitAppointmentImages As AppointmentImagesEventHandler

Event Data

The InitAppointmentImages event handler receives an argument of the AppointmentImagesEventArgs type. The following properties provide information specific to this event.

Property Description
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.

Remarks

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.

Example

Note

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="&amp;Important" />
                <dx:AppointmentLabel Color="168, 213, 255" DisplayName="Business" 
                MenuCaption="&amp;Business" />
            </Labels>
        </Appointments>
    </Storage>
</dx:ASPxScheduler>
See Also