aspnet-devexpress-dot-web-dot-aspxtreelist-dot-treelistsettingsbehavior.md
Disabling this property may introduce security-related issues. Review the following help topic and learn how to protect websites from cross-site scripting (XSS) attacks: HTML Encoding.
Gets or sets whether to encode error row content.
Namespace : DevExpress.Web.ASPxTreeList
Assembly : DevExpress.Web.ASPxTreeList.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(true)]
public bool EncodeErrorHtml { get; set; }
<DefaultValue(True)>
Public Property EncodeErrorHtml As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to encode error row content and display it as text, false to not encode error row content and render it as HTML markup.
|
You can access this nested property as listed below:
| Object Type | Path to EncodeErrorHtml |
|---|---|
| ASPxTreeList |
.SettingsBehavior .EncodeErrorHtml
|
The ASPxTreeList control converts service characters (for instance, < and >) in error row content to character entity references (< and >) and displays HTML code as text. Set the EncodeHtml property to false to prevent such a convertion and render error row content as HTML markup.
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()
See Also
TreeListSettingsBehavior Class