AppointmentImagesEventArgs.ViewInfo Property

Provides access to the view information for an appointment when the ASPxScheduler.InitAppointmentImages event occurs.

Namespace: DevExpress.Web.ASPxScheduler

Assembly: DevExpress.Web.ASPxScheduler.v20.1.dll

Declaration

public IAppointmentViewInfo ViewInfo { get; }
Public ReadOnly Property ViewInfo As IAppointmentViewInfo

Property Value

Type Description
IAppointmentViewInfo

An IAppointmentViewInfo interface defining view information on the rendered appointment.

Remarks

Use the ViewInfo property to obtain resource information for a particular appointment and modify the appointment view options. The following example illustrates how to force displaying start and end times for an appointment that meets certain criteria.

protected void ASPxScheduler1_InitAppointmentImages(object sender, 
        DevExpress.Web.ASPxScheduler.AppointmentImagesEventArgs e) {
    object firstResource = ((ASPxScheduler)sender).Storage.Resources[0];
    if(e.ViewInfo.Resource == firstResource) {
        e.ViewInfo.Options.ShowStartTime = false;
        e.ViewInfo.Options.ShowEndTime = false;
    }
}
See Also