Skip to main content
A newer version of this page is available. .

IModelOptionsWeb.CollectionsEditMode Property

Specifies the application’s mode of operation, with respect to the display of nested List Views.

Namespace: DevExpress.ExpressApp.Web.SystemModule

Assembly: DevExpress.ExpressApp.Web.v19.1.dll

Declaration

[DefaultValue(ViewEditMode.View)]
ViewEditMode CollectionsEditMode { get; set; }

Property Value

Type Default Description
ViewEditMode **View**

A ViewEditMode enumeration value which specifies the application’s mode of operation with respect to the display of nested List Views.

Available values:

Name Description
View

An XAF element that supports the View-Edit mode is displayed in the read-only mode in ASP.NET and Mobile applications.

Edit

An XAF element that supports the View-Edit mode is displayed in the editable mode in ASP.NET and Mobile applications.

Remarks

The default value of this property is overridden by the Solution Wizard. The default CollectionsEditMode is Edit in applications created using the wizard.

In ViewEditMode.Edit mode used by default, collection properties are always displayed in a Detail View, but can only be modified when the Detail View is in Edit mode.

WebCollectionsMode_Edit

In ViewEditMode.View mode, collection properties are not displayed when a Detail View is in edit mode, and can be modified only when the Detail View is in view mode.

WebCollectionsMode_View

The CollectionsEditMode property value is passed to the ShowViewStrategy.CollectionsEditMode property of the current application’s XafApplication.ShowViewStrategy.

You can change CollectionsEditMode property value in the Model Editor invoked for the ASP.NET module or application project:

CollectionsEditMode

To change the collections edit mode for a specific Detail View only, use the IModelDetailViewWeb.CollectionsEditMode property.

See Also