SchedulerControl.CreateNewRecurringEvent() Method

Invokes the dialog for editing a newly created all-day appointment and a child dialog for editing the recurrence information.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.1.dll

Declaration

public void CreateNewRecurringEvent()
Public Sub CreateNewRecurringEvent

Remarks

The Edit Appointment dialog is displayed with the appointment settings listed in the table below.

Property Value
Appointment.AllDay true
Appointment.Start The start of the time interval currently selected in the active view of the Scheduler. This time interval can be obtained using the SchedulerViewBase.SelectedInterval property of the SchedulerControl.ActiveView.
Appointment.End The end of the time interval currently selected in the active view of the Scheduler. This time interval can be obtained using the SchedulerViewBase.SelectedInterval property of the SchedulerControl.ActiveView.
Appointment.ResourceId The identifier of the currently selected resource (a resource returned by the SchedulerViewBase.SelectedResource property of the SchedulerControl.ActiveView).
Appointment.StatusId AppointmentStatusType.Free

The dialog appears as illustrated in the following picture:

CreateNewRecurringEvent_Dialog

 

TIP

To create a new appointment in code, use the SchedulerStorageBase.CreateAppointment method.

NOTE

Use the SchedulerOptionsCustomization.AllowAppointmentCreate option to restrict appointment creation. A new all-day recurring appointment can be created if this option is set to UsedAppointmentType.All or to UsedAppointmentType.Recurring.

See Also