Skip to main content

ISchedulerStorageBase.RefreshData() Method

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

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.Core.dll

NuGet Package: DevExpress.Scheduler.Core

Declaration

void 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

If you reference appointments, appointment dependencies and/or resources in code, remember that these objects are disposed and re-created when you call the RefreshData method.

See Also