Skip to main content

MVCxTreeListSettingsEditing.ShowModelErrorsForEditors Property

Gets or sets a value that specifies whether or not model error messages should be automatically displayed for invalid editors within the error node.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public bool ShowModelErrorsForEditors { get; set; }

Property Value

Type Description
Boolean

true if model error messages are automatically displayed for invalid editors; false if the automatic error visualization feature is not used.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowModelErrorsForEditors
MVCxTreeList
.SettingsEditing .ShowModelErrorsForEditors
TreeListSettings
.SettingsEditing .ShowModelErrorsForEditors

Remarks

By default, if the data entered and submitted by an end-user is invalid due to the Model validation rules, the error text is automatically displayed within the TreeList’s error node. This behavior is controlled by the TreeList’s ShowModelErrorsForEditors property. This property affects the setting of the ShowModelErrors property available for DevExpress MVC editors (e.g. TextBoxSettings.ShowModelErrors for TextBox).

In addition, if Model data is invalid or an error occurs during data changes, you can use the TreeList’s TreeListExtension.SetEditErrorText method to display a common error text in a special row at the bottom of the TreeList’s edit node.

To learn more, see our online demo: TreeList - Inline Editing

See Also