Skip to main content

AppointmentRecurrenceFormSettings.DayNumber Property

Specifies the month’s day number when the appointment is scheduled.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public int DayNumber { get; set; }

Property Value

Type Description
Int32

The day of the month.

Remarks

If you specify the recurrence pattern on a monthly or yearly time basis, the DayNumber property specifies the number of the day within a month. This is used to calculate the date when the appointment reoccurs. The DayNumber property values can be from 1 to 31 inclusive.

Run Demo: MVC Scheduler - Custom Forms

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

This property corresponds to the RecurrenceInfo.DayNumber property.

See Also