cannot delete "___"appearing before numbers

5 posts, 1 answers
  1. Haythem
    Haythem avatar
    26 posts
    Member since:
    Jun 2013

    Posted 10 Jan 2014 Link to this post

    Hello,
    I am using RadMaskedNumericInput in a silverlight application,
    I have set my mask to "#####.#####" and the numbers are ok.
    the problem here is that when i click on the textinput to enter number i have the "_____._____" which i want to remove but i couldn't .
    I relly need your help,
    And by the way, if its possible , can you send me the correct regEx that muches with the mask"#####.#####" means : a double that can have at much 5 digits then a UNIQUE dot"." then at much 5 digits, with only positive numbers???? that would be very nice from you 
    waiting forward for your answer.

    Cordially
    KAROUI Haythem
    IT Manager at Crea Digital
  2. Answer
    Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 15 Jan 2014 Link to this post

    Hello Haythem,

    The underscore symbols that you refer are called placeholders. They are necessary for the RadMaskedInput controls to work property and cannot be completely removed. However, you can make them invisible. The RadMaskedInput control exposes the Placeholder property that controls the char that will be used instead of the underscore ("_"). In your particular case you can try setting it to space (" ").

    Please give this approach a try and let us know if you need any further assistance.

    Regards,
    Pavel R. Pavlov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Haythem
    Haythem avatar
    26 posts
    Member since:
    Jun 2013

    Posted 15 Jan 2014 Link to this post

    Hello,
    Thank you for your answer, it partially works... when i put allowSkipPlaceHolder=False i can't move the cursor with keyBoard but still can do this with the mouse... any suggestions?
    And what about the RegEx?

    Cordially
    KAROUI Haythem
  5. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 17 Jan 2014 Link to this post

    Hi Haythem,

    You are right that you can force the cursor to skip placeholders with the mouse, but please note that you are not allowed to enter any numbers on that place. Also, please note that the AllowSkipPlaceholders property is designed to restrict the input of the control, not the navigation. Hence, the reported behavior is expected.

    Regarding the RegEx questions, internally for the Mask property we are not using RegEx. We use the TryParce() method of the native types. Basically, if that native method successfully parses the given string, we assign it as Value of the control. Hence, I am afraid I cannot provide you with such RegEx.

    Regards,
    Pavel R. Pavlov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Haythem
    Haythem avatar
    26 posts
    Member since:
    Jun 2013

    Posted 17 Jan 2014 Link to this post

    Ok .
    Thank you anyway for your answer :)

    Cordially
    KAROUI Haythem
Back to Top
UI for WPF is Visual Studio 2017 Ready