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

RadMaskedTextbox Binding

2 Answers 141 Views
Input
This is a migrated thread and some comments may be shown as answers.
Mike Dennis
Top achievements
Rank 1
Mike Dennis asked on 14 Nov 2007, 03:46 PM
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

Sort by
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.

Greetings,
Pavel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mike Dennis
Top achievements
Rank 1
answered on 19 Nov 2007, 04:05 PM
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.
Tags
Input
Asked by
Mike Dennis
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Mike Dennis
Top achievements
Rank 1
Share this question
or