expressappframework-devexpress-dot-expressapp-dot-detailview-42b16604.md
Specifies whether the IModelAsync.UseAsyncLoading property is visible in the Model Editor.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public static bool UseAsyncLoading
Public Shared UseAsyncLoading As Boolean
| Type | Description |
|---|---|
| Boolean |
true , if the IModelAsync.UseAsyncLoading property is visible in the Model Editor; otherwise, false.
|
When asynchronous data loading is enabled, only the current object of a Detail View is loaded asynchronously, its associated collections are loaded in the main thread and this locks the UI. Enable this feature only if current object loading causes performance issues because of complex logic or a remote database.
The following example shows how to specify this static field to show the UseAsyncLoading property in the Model Editor.
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Win;
// ...
public partial class MySolutionWindowsFormsApplication : WinApplication {
// ...
public MySolutionWindowsFormsApplication() {
DetailView.UseAsyncLoading = true;
// ...
}
}
The Template Kit enables the UseAsyncLoading property in new projects. For this purpose, the kit generates new projects with the FrameworkSettings.DefaultSettingsCompatibilityMode property set to Latest.
If DetailView.UseAsyncLoading is set to true , note the following:
Refer to the Asynchronous Data Loading topic for more information.
See Also