Skip to main content
Tab

EditPropertiesBase.NullDisplayText Property

SECURITY NOTE

Setting this property to values from an untrusted source may introduce security-related issues, since the property value is not encoded and is rendered as HTML markup. Call the HttpUtility.HtmlEncode method to encode the value.

Review the following help topic to better protect websites from cross-site scripting (XSS) attacks: HTML Encoding.

Gets or sets the text displayed within the editor’s edit region when the editor’s value is null.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue("")]
public virtual string NullDisplayText { get; set; }

Property Value

Type Default Description
String String.Empty

A string value specifying the text displayed within the editor when the editor’s value is null.

Remarks

The NullDisplayText property can be used to specify a custom text to display within an inplace editor when the editor’s value is null. If this property is not set, null values are displayed as empty strings within the editor.

To convert an empty string value to a null value, set the EditProperties.ConvertEmptyStringToNull property to true.

See Also