Back to Devexpress

SchedulerDataStorage.AppointmentDependencyCollectionAutoReloading Event

windowsforms-devexpress-dot-xtrascheduler-dot-schedulerdatastorage-c87befd3.md

latest5.2 KB
Original Source

SchedulerDataStorage.AppointmentDependencyCollectionAutoReloading Event

Occurs when the data source which contains appointment dependency records is modified and dependencies are set to be automatically reloaded.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public event CancelListChangedEventHandler AppointmentDependencyCollectionAutoReloading
vb
Public Event AppointmentDependencyCollectionAutoReloading As CancelListChangedEventHandler

Event Data

The AppointmentDependencyCollectionAutoReloading event's data class is CancelListChangedEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets whether the operation performed on the processed event should be canceled.
ListChangedTypeGets the type of change. Inherited from ListChangedEventArgs.
NewIndexGets the index of the item affected by the change. Inherited from ListChangedEventArgs.
OldIndexGets the old index of an item that has been moved. Inherited from ListChangedEventArgs.
PropertyDescriptorGets the PropertyDescriptor that was added, changed, or deleted. Inherited from ListChangedEventArgs.

Remarks

In bound mode, the SchedulerDataStorage object is bound to a data source which contains appointment dependency records. This data source is specified by the DataMember and DataSource properties of the SchedulerDataStorage.AppointmentDependencies object.

When the PersistentObjectStorage<T>.AutoReload property of the AppointmentDependencyStorage object is set to true data are automatically reloaded. In this case, the SchedulerDataStorage object reloads data from the data source each time an item in the data source is modified, added, moved or removed, a column is added, modified or deleted or multiple changes are made to the data source. The AppointmentDependencyCollectionAutoReloading event allows you to prevent data from being reloaded in specific cases. Use the event’s ListChangedType parameter to get the cause of the data source changes. To prevent data from being reloaded in a specific case, set the CancelListChangedEventArgs.Cancel parameter to true. Otherwise, the SchedulerDataStorage object will reload data from the data source immediately after the event handler is completed.

The AppointmentDependencyCollectionAutoReloading event doesn’t fire in unbound mode and in bound mode if the PersistentObjectStorage<T>.AutoReload property is set to false.

See Also

AppointmentDependencyDataStorage

AutoReload

SchedulerDataStorage Class

SchedulerDataStorage Members

DevExpress.XtraScheduler Namespace