AppointmentDragEventArgs.NewAppointmentResourceIds Property
Gets or sets the IDs of resources for a new appointment.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.Core.Desktop.dll
Declaration
Property Value
Type | Description |
---|---|
ResourceIdCollection | A ResourceIdCollection object. |
Remarks
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.NewAppointmentResourceIds=rid;
e.Handled = true;
}
Note
The SchedulerStorageBase.ResourceSharing should be set to true, to allow multiple resources for an appointment.
See Also