Data Editors - Editor Types Text Box

This demo illustrates the primary features of the DevExpress MVC Text Box - a single-line text input editor.

The text displayed in the edit box can be specified via the Text property. The Properties.DisplayFormatString property specifies the pattern used to format an editor's value for display purposes when not focused.

The Text Box editor supports masked input - mask settings can be accessed via the Properties.MaskSettings property. A mask expression can be specified via MaskSettings.Mask.

In addition to editor's mask settings, it is possible to define the mask settings for a model field using the DevExpress Mask attribute. The mask pattern will automatically be displayed within the TextBox extension. The Mask attribute enables the validation mechanism that checks whether the entered value matches the mask expression. The decorated model field will be automatically validated on the server side.

Version: v2017 vol 1.7
Copyright © 2006-2017 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.