Here is how to quickly configure two RadMaskedEditBox controls. One uses a custom phone number mask, the second as a predefined short date pattern.

Figure 1: RadMaskedEditBox Setup

Drop two RadMaskedEditBox controls on a form.

In the first RadMaskedEditBox set the MaskType property to Standard and the Mask property to "(###) ###-###". See *Standard Masks for more information on how this mask is constructed.*

In the second RadMaskedEditBox set the MaskType property to DateTime and the Mask property to "d". * See Date and Time Masks** for more information on how this mask is constructed.*

Press F5 to run the application. Notice the behavior in the first RadMaskedEditBox where the literals "(" and ")" are jumped over and cannot be replaced by the user. Also notice that mask characters are represented by the character in the PromptChar property (by default this is the underscore "_" character) when blank.

Was this article helpful?

/

Give article feedback

Tell us how we can improve this article

Code samples are inaccurate / outdated.
I expected to find other / more information.
There are typos / broken links / broken page elements.
Content is inaccurate / outdated.
Other
By checking this box you consent to Progress contacting you by email about your response on this page.

Community

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.