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.v19.2.dll
Declaration
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 |
|
MVCxTreeList |
|
TreeListSettings |
|
TreeListSettings<RowType> |
|
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.
WebForms:
<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
See Also