A newer version of this page is available. Switch to the current version.

ISchedulerStorageBase.RefreshData() Method

Updates the Scheduler control to reflect any changes made in the persistent object data sources.

Namespace: DevExpress.XtraScheduler

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

Declaration

void RefreshData()
Sub RefreshData

Remarks

Appointments, resources and appointment dependencies for the Scheduler control can be stored in external data sources. To connect the Scheduler control to these data sources, use the IPersistentObjectStorage<T>.DataSource and IPersistentObjectStorage<T>.DataMember properties of the persistent object storages.

By default, data from the data sources is automatically reloaded after each change is made to the data sources (for instance, when records are added, deleted or modified). Automatic data reloading can be disabled via the IPersistentObjectStorage<T>.AutoReload property. If this property is set to false, the Scheduler control ignores any change notifications sent by the data source, and doesn't automatically reload data. You need to manually call the ISchedulerStorageBase.RefreshData method to reload the data in the data source for the changes to appear in the Scheduler control.

NOTE

When you call the RefreshData method, all appointments in the Scheduler are recreated. So, all appointments referenced in your code before become disposed and you should not use them.

See Also