Skip to main content
.NET Framework 4.5.2+

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