Hide mask when control is focused

2 posts, 0 answers
  1. Sergey
    Sergey avatar
    58 posts
    Member since:
    Jan 2013

    Posted 10 Jun 2013 Link to this post

    Hello. How can I hide currency mask in RadMaskedCurrencyInput when I select this control? (I see next number ",   ,   ,  1.01", but I need to see only 1.01). Thanks.
  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1251 posts

    Posted 12 Jun 2013 Link to this post

    Hi Sergey,

    As far as I understand your scenario you have defined a Mask with an empty placeholder (e.g. " ") and now your requirement is to hide the separators when the RadMaskedCurrencyInput control is focused. The visibility of the separators is controlled by the AutoFillNumberGroupSeparators property. If you set it to False the separators will not be visualized. Please note that you are not allowed to fill number separators manually in the control. Also, visualizing separators when they are needed is not supported.

    However, you can try using our RadMaskedTextInput control and bind its Value property to property defined in your View-Model through a Converter. In that converter you can implement your custom logic for positioning the separators and validating the users input. Furthermore, you can use the MaskedInputExtensions to restrict the user's input.

    I hope this information will get you started.

    Pavel R. Pavlov

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top