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

DxSchedulerAppointmentMappings.Type Property

Maps information about the type of an appointment.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public DxSchedulerMapping Type { get; set; }

#Property Value

Type Description
DxSchedulerMapping

Maps the data field to the Type appointment property.

#Remarks

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).

C#
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