Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SchedulerControl.RefreshData(RefreshDataKind) Method

Updates a specific SchedulerControl data to reflect any changes made in it.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v24.2.dll

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public void RefreshData(
    RefreshDataKind kind
)

#Parameters

Name Type Description
kind RefreshDataKind

One of the enumeration values specifying data type to refresh.

#Remarks

Appointments and appointment resources for the scheduler control can be stored in external data source. To connect the scheduler control to these data source, use the SchedulerControl.DataSource property.

Data from the data source is automatically reloaded after each change is made to the data sources (for instance, when records are added, deleted or modified) by default. You can manually call the RefreshData method to reload the data in the data source for the changes to appear in the scheduler control.

If you use the DataSource.FetchAppointments or DataSource.FetchTimeRegions event to load data on demand, the RefreshData method clears the cached appointments and time regions and fires the corresponding event.

See Also