Skip to main content

TreeListExtension.SetEditErrorText(String) Method

Displays the specified (error) text in an Error Node at the bottom of the treelist’s Edit Form.

Namespace: DevExpress.Web.Mvc

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

Declaration

public TreeListExtension SetEditErrorText(
    string message
)

Parameters

Name Type Description
message String

A string value specifying the text to be displayed within the error node.

Returns

Type Description
TreeListExtension

A TreeListExtension object representing the TreeList extension.

Remarks

If Model data is invalid or an error occurs during data changes, you can use the treelist’s SetEditErrorText method to display a common error text in an error node at the bottom of the edit form.

This method can be used together with the automatic Model error visualization feature controlled by the treelist’s MVCxTreeListSettingsEditing.ShowModelErrorsForEditors property.

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

See Also