ChangeVariantController.AllowChangeVariantWhenObjectSpaceIsModified Property

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

Namespace: DevExpress.ExpressApp.ViewVariantsModule

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

Declaration

public bool? AllowChangeVariantWhenObjectSpaceIsModified { get; set; }
Public Property AllowChangeVariantWhenObjectSpaceIsModified As Boolean?

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 applications to avoid losing the postback data. So, the ChangeVariantAction is disabled when there are changes in the Object Space in the ASP.NET 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