Skip to main content

AppointmentDragEventArgs.NewAppointmentResourceIds Property

Gets or sets the IDs of resources for a new appointment.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v22.2.Core.Desktop.dll

NuGet Package: DevExpress.Scheduler.CoreDesktop


public ResourceIdCollection NewAppointmentResourceIds { get; set; }

Property Value

Type Description

A ResourceIdCollection object.


Use this property to specify resources to associate with the AppointmentDragEventArgs.EditedAppointment in the appointment drag event.

The following code snippet illustrates this technique. It handles the SchedulerControl.AppointmentDrag event and assigns 2nd and 5th resources to the relocated appointment :

private void schedulerControl_AppointmentDrop(object sender, AppointmentDragEventArgs e)
    ResourceIdCollection rid=new ResourceIdCollection();
    rid.AddRange(new object[] { schedulerStorage.Resources[2].Id, 
        schedulerStorage.Resources[5].Id });
    e.Handled = true;


The SchedulerStorageBase.ResourceSharing should be set to true, to allow multiple resources for an appointment.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NewAppointmentResourceIds property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also