Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SchedulerControl.CreateNewAppointment() Method

In This Article

Invokes the dialog for editing a newly created appointment.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.dll

NuGet Package: DevExpress.Win.Scheduler

#Declaration

public void CreateNewAppointment()

#Remarks

The Edit Appointment dialog is displayed with the following appointment settings:

Property Value
Appointment.AllDay false
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).
StatusKey AppointmentStatusType.Busy

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 appointment can be created if this option is set to UsedAppointmentType.All or to UsedAppointmentType.NonRecurring.

See Also