A newer version of this page is available. Switch to the current version.

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.v18.2.dll


public TreeListExtension SetEditErrorText(
    string message
Public Function SetEditErrorText(
    message As String
) As TreeListExtension


Name Type Description
message String

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


Type Description

A TreeListExtension object representing the TreeList extension.


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