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

ASPxGridBehaviorSettings.EncodeErrorHtml Property

Gets or sets whether the control keeps its error row content that is HTML as HTML, or instead, strips out the HTML markers.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

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

Property Value

Type Default Description
Boolean **false**

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:

Show 16 property paths
Library Object Type Path to EncodeErrorHtml
ASP.NET Bootstrap Controls BootstrapCardView
.SettingsBehavior.EncodeErrorHtml
BootstrapGridView
.SettingsBehavior.EncodeErrorHtml
ASP.NET Web Forms Controls ASPxCardView
.SettingsBehavior.EncodeErrorHtml
ASPxGridView
.SettingsBehavior.EncodeErrorHtml
ASPxVerticalGrid
.SettingsBehavior.EncodeErrorHtml
GridViewProperties
.SettingsBehavior.EncodeErrorHtml
CardViewSettings
.SettingsBehavior.EncodeErrorHtml
CardViewSettings<CardType>
.SettingsBehavior.EncodeErrorHtml
GridViewSettings
.SettingsBehavior.EncodeErrorHtml
GridViewSettings<RowType>
.SettingsBehavior.EncodeErrorHtml
MVCxCardView
.SettingsBehavior.EncodeErrorHtml
MVCxGridView
.SettingsBehavior.EncodeErrorHtml
MVCxGridViewProperties
.SettingsBehavior.EncodeErrorHtml
MVCxVerticalGrid
.SettingsBehavior.EncodeErrorHtml
VerticalGridSettings
.SettingsBehavior.EncodeErrorHtml
VerticalGridSettings<ColumnType>
.SettingsBehavior.EncodeErrorHtml

Remarks

Find control-specific information (for ASPxGridView, ASPxCardView or ASPxVerticalGrid) in the sections below.

ASPxGridView

If the EncodeErrorHtml property is set to true, the error row content that contains HTML code is parsed so that any angle bracket (the characters < and >) of HTML tags is converted to specific symbols (&lt; and &gt;) when the grid renders its row errors. This allows the HTML code to be represented on the page as text:

EncodeErrorHtml_True

If this property is set to false, the row errors that contain HTML tags are not specifically parsed and are rendered as pure HTML markup. This allows the result of the HTML code to be displayed in the grid:

EncodeErrorHtml_False

Grid View - Getting Started

ASPxCardView

If the EncodeErrorHtml property is set to true, a card error text that contain HTML code is parsed so that any angle bracket (the characters < and >) is converted to specific symbols (&lt; and &gt;) when the grid renders its card errors. This allows the HTML code to be represented on the page as text.

If this property is set to false, the card errors that contain HTML tags are not specifically parsed and are rendered as pure HTML markup. This allows the result of the HTML code to be displayed in the grid.

Card View - Getting Started

ASPxVerticalGrid

If the EncodeErrorHtml property is set to true, a record error text that contain HTML code is parsed so that any angle bracket (the characters < and >) is converted to specific symbols (&lt; and &gt;) when the grid renders its record errors. This allows the HTML code to be represented on the page as text.

If this property is set to false, the record errors that contain HTML tags are not specifically parsed and are rendered as pure HTML markup. This allows the result of the HTML code to be displayed in the grid.

Vertical Grid - Getting Started

Note

The EncodeErrorHtml property has effect only for GridErrorTextKind.RowValidate errors.

See Also