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

Using masked edit box for variable length numeric data

3 Answers 568 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
Ruth Goldberg
Top achievements
Rank 1
Ruth Goldberg asked on 09 Mar 2010, 07:56 PM
I've tried using a masked edit box for data that should be numbers only. I set the mask type to standard and the mask to "##########", which is supposed to allow optional numbers up to 10 characters. What happens is that I can't tab out of the field unless I've entered 10 numbers, which is not what I want. I want up to 10 digits. I can't find documentation for the numeric masks, only for standard and date time. I don't know if using a numeric mask would do the job.

3 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 12 Mar 2010, 10:06 AM
Hello Ruth Goldberg,

I have tested your scenario and I was not able to reproduce the issue. I did the following in my testing scenario:

1. Create a new instance of RadMaskedEditBox
2. Set the MaskType = Standard and Mask = "##########"
3. Run the project
4. Initially the displayed text is "__________"
5. Click in the mask field
6. Type '1' and '2'
7. The displayed text now is "12________"
8. Press Tab or Shift + Tab
9. The control loses its focus and tabbing trough and out the control was successful.

This was tested with the latest Q1 2010 release of RadControls for Winforms.

If I have not understood exactly your scenario, please write me back with more detailed instructions which will help me to reproduce the possible issue.

Greetings,
Boyko Markov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ruth Goldberg
Top achievements
Rank 1
answered on 15 Mar 2010, 09:07 PM
The probably apparently only happens when the masked edit box is bound to the key field of a table. When I tested with an unbound field or bound to a non-key field, it worked OK. But when I try binding it to a key field, I can't tab out unless I enter the maximum number of characters.
0
Boyko Markov
Telerik team
answered on 17 Mar 2010, 06:10 PM
Hi Ruth Goldberg,

Could you please open a new support ticket and send us a sample which demonstrates the issue? This would be of great help as we will be able to test and debug your specific scenario.

I am looking forward to your reply.

Kind regards,
Boyko Markov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
MaskedEditBox
Asked by
Ruth Goldberg
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Ruth Goldberg
Top achievements
Rank 1
Share this question
or