All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

TreeListSettingsBehavior.EncodeErrorHtml Property

Specifies whether the tree list keeps its error row content that is HTML as HTML, or instead, strips out the HTML markers.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v20.1.dll

Declaration

[DefaultValue(true)]
public bool EncodeErrorHtml { get; set; }
<DefaultValue(True)>
Public Property EncodeErrorHtml As Boolean

Property Value

Type Default Description
Boolean

true

true if the HTML code contained within the row errors is not executed and is converted into the corresponding text for display purposes; false if the row errors can contain pure HTML code.

Property Paths

You can access this nested property as listed below:

Object Type Path to EncodeErrorHtml
ASPxTreeList
.SettingsBehavior.EncodeErrorHtml
MVCxTreeList
.SettingsBehavior.EncodeErrorHtml
MVCxTreeList
.SettingsBehavior.EncodeErrorHtml
TreeListSettings
.SettingsBehavior.EncodeErrorHtml
TreeListSettings<RowType>
.SettingsBehavior.EncodeErrorHtml

Remarks

The grid automatically parses the error row content so that any HTML code is converted to text. To render the error text as pure HTML markup, set the EncodeErrorHtml property to false.

Web Forms:

<dx:ASPxTreeList ID="ASPxTreeList1" runat="server" ...>
    ...
    <SettingsBehavior EncodeErrorHtml="false" />
</dx:ASPxTreeList>

MVC:

@Html.DevExpress().TreeList(settings => {
    settings.Name = "TreeList";
    settings.SettingsBehavior.EncodeErrorHtml = false;
    ...
}).GetHtml()  

Concept

HTML Encoding

See Also