Skip to main content

AppointmentRecurrenceFormSettings.Month Property

Specifies the month (as a number) when the appointment reoccurs.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public int Month { get; set; }

Property Value

Type Description
Int32

The month’s ordinal number.

Remarks

If the recurrence pattern is based on a yearly repetition,

The Month property specifies the number of the month when the appointment reoccurs (for the yearly recurrence pattern). The Month property value can be from 1 to 12 inclusive.

@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",
        Month = container.RecurrenceMonth
        <!-- ... -->
    };
}

Run Demo: MVC Scheduler - Custom Forms

This property corresponds to the RecurrenceInfo.Month property.

See Also