DxSchedulerAppointmentStatusItem Class

An object used to indicate the availability status related to an appointment.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public class DxSchedulerAppointmentStatusItem :
    DxSchedulerSourceObjectContainer

Remarks

You can assign the DxSchedulerAppointmentStatusItem object to an appointmnt to indicate the availability status.

An appointment displayed in the scheduler indicate its status as a colored strip on the left edge. The color is obtained from the DxSchedulerAppointmentStatusItem.Color value.

When the end-user creates a new appointment and invokes the full-sized Appointment form, the Status section has a drop-down with the available statuses. End-user can select the status to assign to the current appointment:

The scheduler has a built-in collection of statuses:

  • Free
  • Working elsewhere
  • Tentative
  • Busy
  • Away

To substitute the built-in collection with your own statuses, perform the following steps:

  1. Create a collection of status source objects
  2. Assign the collection to the AppointmentStatusSource property
  3. Create the DxSchedulerAppointmentStatusMappings instance, specify mappings and assign it to the AppointmentStatusMappings property.

The following code snippet illustrates this approach:

@code {
    DxSchedulerDataStorage DataStorage = new DxSchedulerDataStorage()
    {
        AppointmentStatusSource = new List<StatusObject>()
            {
                new StatusObject() { Id = "1", StatusName = "Status One", StatusColor = System.Drawing.Color.White },
                new StatusObject() { Id = "2", StatusName = "Status Two", StatusColor = System.Drawing.Color.Blue },
            },
        AppointmentStatusMappings = new DxSchedulerAppointmentStatusMappings()
        {
            Id = "Id",
            Caption = "StatusName",
            Color = "StatusColor"
        }
    };
}

Inheritance

Object
DevExpress.Blazor.Scheduler.Internal.NotifyPropertyChangedBase
DxSchedulerSourceObjectContainer
DxSchedulerAppointmentStatusItem
See Also