Skip to main content

CompositeView.DelayedItemsInitialization Property

Indicates whether View Items controls of the CompositeView are initialized immediately when the View is created.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v25.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public bool DelayedItemsInitialization { get; set; }

Property Value

Type Description
Boolean

true if View Item controls are initialized once they are visible to end-users; false if View Item controls are initialized once the View is created.

Remarks

To change this property value, override the OnActivated method of a ViewController descendant.

using DevExpress.ExpressApp;

namespace SolutionName.Module.Controllers {
    public class DisablePerformanceOptimizationController : ViewController<DetailView> {
        protected override void OnActivated() {
            base.OnActivated();
            View.DelayedItemsInitialization = false;
        }
    }
}

You can also change this setting globally for all Views using the XafApplication.DelayedViewItemsInitialization property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DelayedItemsInitialization property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also