Skip to main content

SchedulerControl.RefreshData() Method

Updates the XtraScheduler control to reflect any changes made in the data sources which store appointments and appointment resources.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.dll

NuGet Package: DevExpress.Win.Scheduler

Declaration

public virtual void RefreshData()

Remarks

This method calls the SchedulerStorageBase.RefreshData method to reload data from the data sources which contain appointments and appointment resources. Refer to this topic for more information.

Note

When the storage is connected to a data source and the PersistentObjectStorage<T>.AutoReload property is set to false, data is not automatically retrieved from the data source. The RefreshData method should be called manually to retrieve the data in this case.

Important

We always recommend testing the ISchedulerStateService.IsDataRefreshAllowed property before manually executing the SchedulerStorageBase.RefreshData or SchedulerControl.RefreshData methods.

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

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