Occurs when the data source which contains appointment records is modified and appointments are set to be automatically reloaded.
public event CancelListChangedEventHandler AppointmentCollectionAutoReloading
Public Event AppointmentCollectionAutoReloading As CancelListChangedEventHandler
The AppointmentCollectionAutoReloading event's data class is CancelListChangedEventArgs. The following properties provide information specific to this event:
|Cancel||Gets or sets whether the operation performed on the processed event should be canceled.|
|ListChangedType||Gets the type of change. Inherited from ListChangedEventArgs.|
|NewIndex||Gets the index of the item affected by the change. Inherited from ListChangedEventArgs.|
|OldIndex||Gets the old index of an item that has been moved. Inherited from ListChangedEventArgs.|
|PropertyDescriptor||Gets the PropertyDescriptor that was added, changed, or deleted. Inherited from ListChangedEventArgs.|
In bound mode, the ASPxSchedulerDataWebControlBase object is bound to a data source which contains appointment records. This data source is specified by the DataMember and DataSource properties of the ASPxSchedulerStorage.Appointments object.
When the PersistentObjectStorage<T>.AutoReload property of the ASPxSchedulerStorage.Appointments object is set to true the data is automatically reloaded. In this case, the ASPxSchedulerDataWebControlBase 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 AppointmentCollectionAutoReloading event allows you to prevent data from being reloaded in specific cases. To accomplish this, set the CancelListChangedEventArgs.Cancel parameter to true. Otherwise, the ASPxSchedulerDataWebControlBase object will reload data from the data source immediately after the event handler is completed.
The AppointmentCollectionAutoReloading event doesn't fire in unbound mode and in bound mode if the PersistentObjectStorage<T>.AutoReload property is set to false.