Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

ChangeVariantController.AllowChangeVariantWhenObjectSpaceIsModified Property

Indicates whether the ChangeVariantController.ChangeVariantAction is enabled when the Object Space is modified.

Namespace: DevExpress.ExpressApp.ViewVariantsModule

Assembly: DevExpress.ExpressApp.ViewVariantsModule.v24.2.dll

#Declaration

public bool? AllowChangeVariantWhenObjectSpaceIsModified { get; set; }

#Property Value

Type Description
Nullable<Boolean>

true, if the ChangeVariantAction is enabled when the Object Space is modified; otherwize - false.

#Remarks

The AllowChangeVariantWhenObjectSpaceIsModified property is initialized in the OnFrameAssigned method in case the value is not yet assigned. The property value is set to false in ASP.NET Web Forms applications to avoid losing the postback data. So, the ChangeVariantAction is disabled when there are changes in the Object Space in the ASP.NET Web Forms application, by default. This Action’s state is influenced by its ActionBase.Enabled property’s “NotModified” key value. In WinForms applications, the property is set to true.

To change the default value, implement a custom Controller and access this property in the overridden OnFrameAssigned method.

See Also