TreeListSettingsBehavior.EncodeErrorHtml Property
SECURITY NOTE
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.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
Property Paths
You can access this nested property as listed below:
Object Type | Path to EncodeErrorHtml |
---|---|
ASPxTreeList |
|
Remarks
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()