Skip to main content
.NET 6.0+

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CompositeView.DelayedItemsInitialization Property

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.1.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

You can change this property value in the overridden 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.

See Also