Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Null Text

x
x
xv
x
+
-
Clear
Options
v
Apply Changes


This demo illustrates how to use an editor's NullText property to display prompt text (watermark) in its edit box. The NullTextDisplayMode property specifies whether the null text is displayed in the editor depending on its focus state (if the editor's value is null). Note that the null text does not display in the focused editor if a mask is applied.

DevExpress editors can display a Clear button that allows you to clear the editor value when it is not empty. The DisplayMode property controls the Clear button availability.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
The source code files for this demo are installed (by default) in the following directory:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxDataEditorsDemos