RadInput for ASP.NET

Masks Send comments on this topic.
See Also
RadInput Components > RadMaskedTextBox > Masks

Glossary Item Box

Mask is the default property of RadMaskedTextBox. The Mask must be a string composed of one or more of the mask elements, as shown the table below.  

Mask Elements 

 

 Mask Element

MaskPart class

 Description

 #

 DigitMaskPart

 Digit or space, optional. If this position is blank in the mask, it will be rendered as a
 PromptChar.

 L

 UpperMaskPart

 Uppercase letter, required. Restricts input to the ASCII letters A-Z.

 l

 LowerMaskPar

 Lowercase letter, required. Restricts input to the ASCII letters a-z.

 a

 FreeMaskPart

 Accepts any character.

<n..m>

 NumericRangeMaskPart

 Restricts the user input to the declared numeric range e.g. <0..255>.
 The numeric range mask part may occupy multiple characters of the mask.

<Option1|Option2|Option3>

 EnumerationPart

 Restricts the user input to one of the set options e.g. <Mon|Tue|Wed|Thu|Fri|Sat|Sun>. The pipe("|") serves as a separator between the option values.

 \

 N/A

 Escapes a mask character, turning it into a literal. "\\" is
 the escape sequence for a back slash.

 All other characters

 LiteralPart

 All non-mask elements will appear as themselves within MaskedTextBox. Literals always  occupy a static position in the mask at run time, and cannot be moved or deleted by the user



 

 

See Also