Hello,
I am using the xamMasEditor for phone numbers and would like to make the extension as an optional entry. Right now, in MVC, I have the mask as "###-###-### ext.999999". If the user enters a phone number with an extension it works great but when they don't enter an extension it leaves the "ext." in the bound field.
Please advise.
Thanks!
I have been looking into your post and I see that you would like to change the mask of the XamMaskEditor at runtime according to some condition. If it is true, I can suggest you look through the following forum tread where Anastas has provided an approach on how this can be achieved :
http://blogs.infragistics.com/forums/p/64819/328163.aspx
If you need any further assistance on this matter, feel free to ask.
Hi Yanko,
I am not looking to change the mask edit at run time. The phone number mask will always be the same. The only difference is whether they enter in an extension or not. Right now the mask editor is returning the phone number with the abbreviation for extension "(999) 999-9999 ext." at the end. If they don't enter an extension. I want that literal "ext." not there if the user does not enter an extension.
I am just checking, if you require any further assistance on the matter.
I am glad that you have solved your issue.
I just made a work around that would allow the user to free form the extension.
Thanks for the help.