Skip to main content

AppointmentRecurrenceFormSettings.Periodicity Property

Specifies the frequency of the appointment.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public int Periodicity { get; set; }

Property Value

Type Description
Int32

The frequency of the appointment.

Remarks

The Periodicity property specifies the frequency of the appointment that depends on the frequency type (for example, every Nth day; every Nth week, every Nth month, every Nth year).

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

Run Demo: MVC Scheduler - Custom Forms

This property corresponds to the RecurrenceInfo.Periodicity property.

See Also