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

MaskedEdit URL MaskType - How to detect invalid URL input?

1 Answer 272 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
mudzakkir
Top achievements
Rank 1
mudzakkir asked on 30 Mar 2015, 10:35 AM
Excuse me, 
I have a field which I use to input URL type.
I use RadMaskedEditBox.

I try to browse maskType, but no URL option.
Just Regex available.

How can I prevent invalid URL input?
Maybe using regex?

The telerik documentation is not describing clearly about how to use the regex.

Please help

Regards

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Apr 2015, 07:02 AM
Hello Mudzakkir,

Thank you for writing.

RadMaskedEditBox uses the MaskType enumeration which does not contain URL type. In order to achieve your goal, you can use MaskType.Regex. As to the specific regular expression which should be assigned to the RadMaskedEditBox.Mask property detecting invalid input, you can refer to the following links:

Additionally, you can refer to our Demo application >> Editors >> Masked Edit Box example demonstrating how to use a Regex.

I hope this information helps. Should you have further questions, I would be glad to help.

 
Regards,
Dess
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
MaskedEditBox
Asked by
mudzakkir
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or