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

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

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(true)]
public bool EncodeErrorHtml { get; set; }

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:

Library Object Type Path to EncodeErrorHtml
ASP.NET Controls and MVC Extensions ASPxTreeList
.SettingsBehavior .EncodeErrorHtml
ASP.NET MVC Extensions 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