All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

DetailView.UseAsyncLoading Field

Specifies whether the IModelAsync.UseAsyncLoading property is visible in the Model Editor.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v20.1.dll

Declaration

public static bool UseAsyncLoading
Public Shared UseAsyncLoading As Boolean

Field Value

Type Description
Boolean

true, if the IModelAsync.UseAsyncLoading property is visible in the Model Editor; otherwise, false.

Remarks

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;
        // ...
    }
}

If DetailView.UseAsyncLoading is set to true, note the following:

Refer to the Asynchronous Data Loading topic for more information.

See Also