Skip to main content
A newer version of this page is available. .

AppointmentDragEventArgs.NewAppointmentResourceIds Property

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

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v18.2.Core.dll

Declaration

public ResourceIdCollection NewAppointmentResourceIds { get; set; }

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.

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

Note

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