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

Using mask with previous bad phone numbers?

5 Answers 78 Views
Input
This is a migrated thread and some comments may be shown as answers.
Aron
Top achievements
Rank 2
Aron asked on 10 Aug 2009, 11:00 AM
Hello,
My client wants to use the Rad Input Mask for the phone textbox on a form on our site. This is great for new customers filling out the form. However when populating the text box with phone numbers previously entered the Rad Input Mask does not work well because the phone numbers are written with and without the () - and spaces.
What should I do?

thanks

5 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 12 Aug 2009, 06:42 AM
Hello Adam,

I am not sure if I understand the problem you are facing correctly. Here is an example which illustrates how RadMaskedTextBox works for phone numbers. Can you observe the same problem with it? Please elaborate on this.

Kind regards,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Aron
Top achievements
Rank 2
answered on 12 Aug 2009, 07:33 AM
Hello,
Ok so if I'm introducing the input mask on an existing application the previous data will be inconsistent.
e.g.
  • 123-456-7890
  • 1234567890
  • 123 456 7890
  • (123) 456-7890
  • (123) 4567890
  • 123.456.7890
  • etc
How can I set the value of a RadInput (with a standard usa telephone mask) when the previous data could be in 5+ different formats?
0
Pavel
Telerik team
answered on 14 Aug 2009, 10:08 AM
Hi Adam,

I still do not understand the problem completely. Could you paste the markup for the MaskedTextBox and provide details what is needed to replicate the undesired behavior?

Best wishes,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Aron
Top achievements
Rank 2
answered on 14 Aug 2009, 11:06 AM
Ok, so the phone numbers in the table could like:
  • 123-456-7890
  • 1234567890
  • 123 456 7890
  • (123) 456-7890
  • (123) 4567890
  • 123.456.7890

If I add a RadInput to my checkout page with a standard usa phone mask - it does not work because the existing data has extra or is missing spaces.


0
Pavel
Telerik team
answered on 20 Aug 2009, 06:21 AM
Hi Adam,

In order to help you we need to know how do you set those numbers. Is it on the client, server side, by pasting the value or simply by typing in the control? It will be appreciated if you paste some of your code/markup and provide step-by-step instructions on how to reproduce the behavior.

Greetings,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Input
Asked by
Aron
Top achievements
Rank 2
Answers by
Pavel
Telerik team
Aron
Top achievements
Rank 2
Share this question
or