Back to Devexpress

DetailView.UseAsyncLoading Field

expressappframework-devexpress-dot-expressapp-dot-detailview-42b16604.md

latest4.5 KB
Original Source

DetailView.UseAsyncLoading Field

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

Declaration

csharp
public static bool UseAsyncLoading
vb
Public Shared UseAsyncLoading As Boolean

Field Value

TypeDescription
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.

csharp
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

DetailView Class

DetailView Members

DevExpress.ExpressApp Namespace