Skip to main content

DxSchedulerAppointmentMappings.Type Property

Maps information about the type of an appointment.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor


public DxSchedulerMapping Type { get; set; }

Property Value

Type Description

Maps the data field to the Type appointment property.


If an appointment’s type is not specified, the scheduler creates a OneTime appointment (Type = 0). Specify the Type property to enable recurring appointments in your scheduler. When you map the Type property to a data field, use the field of the Int32 type.

To create a recurring appointment, set its type value to 1 (the Pattern type) and specify the recurrence info (the RecurrenceInfo mapping).

DateTime date = new DateTime(2020, 4, 26);
new RecurringAppointment {
    AppointmentType = 1,
    Caption = "Meeting on Daily Basis",
    Label = 5,
    StartDate = date + (new TimeSpan(0, 9, 30, 0)),
    EndDate = date + (new TimeSpan(0, 11, 0, 0)),
    Recurrence = string.Format("<RecurrenceInfo Type=\"0\" Start=\"{0}\" Range=\"1\" 
      OccurrenceCount=\"15\"  Frequency =\"3\" Id=\"72e3db8f-cdb6-4aaa-afe1-e3c6b80ce995\"/>", 
      ToString(date + (new TimeSpan(0, 9, 30, 0))))

Refer to the DxSchedulerAppointmentMappings class description for an example.

Run Demo: Scheduler - Recurring Appointments

See Also