Using masked edit box for variable length numeric data

4 posts, 0 answers
  1. Ruth Goldberg
    Ruth Goldberg avatar
    54 posts
    Member since:
    Dec 2009

    Posted 09 Mar 2010 Link to this post

    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.
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 12 Mar 2010 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ruth Goldberg
    Ruth Goldberg avatar
    54 posts
    Member since:
    Dec 2009

    Posted 15 Mar 2010 Link to this post

    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.
  5. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 17 Mar 2010 Link to this post

    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.
Back to Top