Skip to main content

AppointmentRecurrenceFormSettings.WeekDays Property

Specifies the day/days in a week when the appointment reoccurs.

Namespace: DevExpress.Web.Mvc

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

Declaration

public WeekDays WeekDays { get; set; }

Property Value

Type Description
WeekDays

An enumeration value.

Available values:

Name Description
Sunday

Specifies Sunday.

Monday

Specifies Monday.

Tuesday

Specifies Tuesday.

Wednesday

Specifies Wednesday.

Thursday

Specifies Thursday.

Friday

Specifies Friday.

Saturday

Specifies Saturday.

WeekendDays

Specifies Saturday and Sunday.

WorkDays

Specifies work days (Monday, Tuesday, Wednesday, Thursday and Friday).

EveryDay

Specifies every day of the week.

Remarks

@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",
        WeekDays = WeekDays.WorkDays,
        <!-- ... -->
    };
}

Run Demo: MVC Scheduler - Custom Forms

This property corresponds to the RecurrenceInfo.WeekDays property.

See Also