Skip to main content

AppointmentRecurrenceFormSettings.WeekOfMonth Property

Specifies the week in a month in which the appointment reoccurs.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public WeekOfMonth WeekOfMonth { get; set; }

Property Value

Type Description
WeekOfMonth

An enumeration value.

Available values:

Name Description
None

There isn’t any recurrence rule based upon the weeks in a month.

First

The recurring event will occur once a month, on the specified day or days of the first week in the month.

Second

The recurring event will occur once a month, on the specified day or days of the second week in the month.

Third

The recurring event will occur once a month, on the specified day or days of the third week in the month.

Fourth

The recurring event will occur once a month, on the specified day or days of the fourth week in the month.

Last

The recurring event will occur once a month, on the specified day or days of the last week in the month.

Remarks

The WeekOfMonth property specifies the week in a month in which the appointment reoccurs. You can use the AppointmentRecurrenceFormSettings.WeekDays property to specify the days in these weeks on which the appointment reoccurs.

@Html.DevExpress().Scheduler(
    settings => {
        settings.Name = "scheduler";
        <!-- ... -->
        settings.OptionsForms.SetAppointmentFormTemplateContent(c => {
            <!-- ... -->
            ViewBag.AppointmentRecurrenceFormSettings = CreateAppointmentRecurrenceFormSettings(c);
        });
}).Bind(Model.Appointments, Model.Resources).SetErrorText(ViewBag.SchedulerErrorText).GetHtml()

AppointmentRecurrenceFormSettings CreateAppointmentRecurrenceFormSettings(AppointmentFormTemplateContainer container) {
    return new AppointmentRecurrenceFormSettings {
        Name = "appointmentRecurrenceForm",
        WeekOfMonth = WeekOfMonth.Second,
        WeekDays = WeekDays.WorkDays,
        <!-- ... -->
    };
}

Run Demo: MVC Scheduler - Custom Forms

This property corresponds to the RecurrenceInfo.WeekOfMonth property.

See Also