Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DayViewAppointmentDisplayOptionsEx.ShowAllDayAppointmentStatusVertically Property

Gets or sets whether to display an all-day appointment status strip vertically on the left or horizontally at the top.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.dll

NuGet Package: DevExpress.Win.Scheduler

#Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ShowAllDayAppointmentStatusVertically { get; set; }

#Property Value

Type Default Description
Boolean true

True, to display all-day appointment status as a vertical strip on the left; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to ShowAllDayAppointmentStatusVertically
DayView
.AppointmentDisplayOptions .ShowAllDayAppointmentStatusVertically

#Remarks

ShowAllDayAppointmentStatusVertically = True ShowAllDayAppointmentStatusVertically = False
ShowAllDayAppointmentStatusVertically-True ShowAllDayAppointmentStatusVertically-False

#Example

This code illustrates how to handle the SchedulerControl.AppointmentViewInfoCustomizing event to change the AppointmentViewInfo.StatusDisplayType for an appointment whose Appointment.Description contains a particular string.

For better visibility, the DayViewAppointmentDisplayOptionsEx.ShowAllDayAppointmentStatusVertically property is set to false.

    Appointment apt = scheduler.ActiveView.GetAppointments()[0];
    apt.End = apt.End.AddDays(1);
    apt.Description = "Time";
    scheduler.ActiveViewType = SchedulerViewType.Day;
    scheduler.DayView.AppointmentDisplayOptions.AllDayAppointmentsStatusDisplayType = AppointmentStatusDisplayType.Bounds;
    scheduler.DayView.AppointmentDisplayOptions.ShowAllDayAppointmentStatusVertically = false;
    scheduler.AppointmentViewInfoCustomizing += scheduler_AppointmentViewInfoCustomizing;

public static void scheduler_AppointmentViewInfoCustomizing(object sender, AppointmentViewInfoCustomizingEventArgs e) {
    if (e.ViewInfo.Description.Contains("Time"))
        e.ViewInfo.StatusDisplayType = AppointmentStatusDisplayType.Time;
}
See Also