ResourceDataStorage.AutoReload Property
Gets or sets whether resources are automatically fetched from the data source when it is modified.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.dll
NuGet Package: DevExpress.Win.Scheduler
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
Boolean | true | true if automatic data loading and reloading is enabled; otherwise, false. |
#Remarks
In bound mode, the ResourceDataStorage object is connected to a data source via the ResourceDataStorage.DataSource and ResourceDataStorage.DataMember properties.
If the AutoReload property is set to true, automatic data loading and reloading is enabled:
- when the storage object is connected to the data source, it automatically fetches records from the data source;
- when the data source is modified, data is automatically reloaded.
Note
The Auto
If the AutoReload property is set to false, the storage object doesn’t load data when it’s connected to a data source, and doesn’t reload data when the data source is modified. In this case, the SchedulerDataStorage.RefreshData method needs to be called manually to fetch data from the data source when required. For instance, this method should be called when the form is opened in order to populate the Scheduler Control with data.