I have a RadMaskedTextbox that I would like to use for phone numbers, but a lot of the data in the database uses various formats. Is there a field that has the bound value without the mask applied? Numbers appear to be getting dropped from the Text property once the mast is applied.
2 Answers, 1 is accepted
0
Pavel
Telerik team
answered on 16 Nov 2007, 09:32 AM
Hi Mike,
You can set the mask dynamically in the code which, if I understood you correctly, should resolve the problem.
Furthermore consider using a textbox if the mask is not absolutely needed.
If these tips are not useful to you, please provide us with further information regarding your problem so we could understand it better and come up with a solution.
Thanks, I ended up using a hidden Textbox, which have the value from the database. When it is data bound, it will run my code for stripping certain characters from that value and adding that to the MaskedTextbox. When it does an update, it will use the value from the MaskedTextbox.