Tab

TextEditProperties.NullTextDisplayMode Property

Specifies when the null text is visible in the editor.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

[DefaultValue(NullTextDisplayMode.Unfocused)]
public NullTextDisplayMode NullTextDisplayMode { get; set; }
<DefaultValue(NullTextDisplayMode.Unfocused)>
Public Property NullTextDisplayMode As NullTextDisplayMode

Property Value

Type Default Description
NullTextDisplayMode

Unfocused

The null text display mode.

Available values:

Name Description
Unfocused

The null text is displayed when the editor is unfocused.

UnfocusedAndFocused

The null text is displayed when the editor is focused or unfocused.

Remarks

The null text is a prompt text displayed in an editor when it is empty and unfocused. Use the NullTextDisplayMode property to specifies whether the null text is also displayed in the editor when it is focused.

Note, if a mask is applied, the focused editor displays the mask and the NullTextDisplayMode property is not in effect.

Online Demo

Data Editors - Null Text

See Also