AppointmentDragEventArgs.NewAppointmentResourceIds Property

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

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v21.1.Core.Desktop.dll


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.

See Also