This is a migrated thread and some comments may be shown as answers.

Documentation of default mask values

2 Answers 183 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
lkeel
Top achievements
Rank 1
lkeel asked on 10 Mar 2009, 01:58 PM
Is there any place where the default masks are documented?  For example, I have found threads that say for alpha only chars use 'L'; in the samples I find the use of 'f' and 'd6'.  I know that 'L' is from the window's maskedtextbox, but I have not found any reference about any other masks in any documentation.

All of this is coming from the fact that I am trying to set a radmaskeditbox to allow either integer, decimal or text values based on a setting.  Obviously the text value is easy.  My problem has come in on how to allow integer or decimal values.

Any help on this would be greatly appreciated.

Thanks,
LK

2 Answers, 1 is accepted

Sort by
0
Accepted
Victor
Telerik team
answered on 12 Mar 2009, 03:49 PM
Hi lkeel,

Our RadMaskedEditBox supports four different  mask types. They are None, Numeric, DateTime and Standard. For each of these mask types there are different characters that define the type of input.
For example for the Standard mask type the "L", "a" ,"#" and "\"  characters have special meanings. For additional information please have a look at our online help which you can find here.

Do not hesitate to write back if you need further assistance.

Regards,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ron Fields
Top achievements
Rank 1
answered on 11 Mar 2010, 10:56 PM
I have looked at the link to the documentation that you provided but I cannot figure out how to create a mask. What I am trying to do is create a mask for an eight character field. Each field should only allow either uppercase A-Z or the digits 0-9. Here is my mark up created using the smart tag:
                    <telerik:RadMaskedTextBox ID="RadMaskedTextBox1" Runat="server"
                        Mask="&lt;L|0..9&gt;&lt;L|0..9&gt;&lt;L|0..9&gt;&lt;L|0..9&gt;&lt;L|0..9&gt;&lt;L|0..9&gt;&lt;L|0..9&gt;&lt;L|0..9&gt;">
                    </telerik:RadMaskedTextBox>

When it renders the control I see L_L_L_L_L_L_ and I am unable to input any characters. Any idead what I might be doing wrong?



Tags
MaskedEditBox
Asked by
lkeel
Top achievements
Rank 1
Answers by
Victor
Telerik team
Ron Fields
Top achievements
Rank 1
Share this question
or