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

Hide mask when control is focused

1 Answer 82 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 10 Jun 2013, 06:26 AM
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.

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 12 Jun 2013, 10:22 AM
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.

Regards,
Pavel R. Pavlov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Sergey
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or