I would like the input to originally appear empty, and only show the mask if the user begins entering a value. If the user removes the value, the mask will again disappear.
This function HideOnblur does not work when I have a RequiredFieldValidator attached to the RadMaskedTextBox. It always display the mask. Is there a work around?
Thanks.
0
Vasil
Telerik team
answered on 29 Aug 2012, 08:19 AM
Hello Vincent,
The Validator itself does not affect the behaviour of RadMaskedTextBox and its HideOnBlur property.
It is possible that you have set SetFocusOnError="true" for your Validator, in this case when you try to blur, the validator gets back the focus to the input element of RadMaskedTextBox, and since the input is in focus, it will again display the mask.
Make sure you have set SetFocusOnError="false" for your Validator to avoid this problem.
Regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.