Skip to main content

DxSchedulerRecurrenceSettings.OccurrenceCount Property

Specifies how many times recurrent appointments occur.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public int OccurrenceCount { get; set; }

Property Value

Type Description
Int32

An integer value that specifies the number of occurrences.

Property Paths

You can access this nested property as listed below:

Object Type Path to OccurrenceCount
DxSchedulerDataStorage
.RecurrenceSettings .OccurrenceCount

Remarks

Use the OccurrenceCount property to specify how many times all recurrent appointments occur. To change this count for an individual appointment, use the DxSchedulerRecurrenceInfo.OccurrenceCount property.

The following code snippet specifies an occurrence count for recurrent appointments. The Meeting 1 and Meeting 2 appointments occur 3 times (the RecurrenceSettings.OccurrenceCount property is applied). The Meeting 3 appointment occurs 10 times (the DxSchedulerRecurrenceInfo.OccurrenceCount property is applied).

@using Data

<DxScheduler StartDate="@DateTime.Today" DataStorage="@DataStorage">
    <DxSchedulerWeekView ShowWorkTimeOnly="true" />
</DxScheduler>

@code {
    DxSchedulerDataStorage DataStorage = new DxSchedulerDataStorage() {
        RecurrenceSettings = new DxSchedulerRecurrenceSettings {
            OccurrenceCount = 3
        },
        AppointmentsSource = RecurrentAppointmentCollection.GetAppointments(),
        AppointmentMappings = new DxSchedulerAppointmentMappings() {
            Type = "AppointmentType",
            Start = "StartDate",
            End = "EndDate",
            Subject = "Caption",
            AllDay = "AllDay",
            Location = "Location",
            Description = "Description",
            LabelId = "Label",
            StatusId = "Status",
            RecurrenceInfo = "Recurrence"
        }
    };
}

Recurrence Settings

See Also