The DevExpress editors allow you to use masks during editing.
Masks are useful when a string entered by an end-user into an editor should match a specific format.
For instance, a text editor should accept date/time values in the 24-hour format only, or only numeric values, or a phone number that only allows
an end-user to enter digits into automatically constructed placeholders.
Within the ASPxEditors library, masked input is supported by the following editor types:
-
Text box editors (in particular, the ASPxTextBox and ASPxButtonEdit).
A text box mask settings can be accessed via the MaskSettings property.
The editors mask can be specified via the MaskSettings.Mask property.
-
Date editors (ASPxDateEdit).
To enable masked input within a date editor, the UseMaskBehavior property should be set to true.
The mask can be defined via the EditFormatString property, if the EditFormat property is set to Custom.
See how masked input behavior is implemented in this demo to facilitate entering different types of data into the forms editors.