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.
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).
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxDataEditorsDemos |