MaskedEdit URL MaskType - How to detect invalid URL input?

2 posts, 0 answers
  1. mudzakkir
    mudzakkir avatar
    7 posts
    Member since:
    Oct 2014

    Posted 30 Mar 2015 Link to this post

    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

  2. Dess
    Dess avatar
    2107 posts

    Posted 02 Apr 2015 Link to this post

    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.


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

Back to Top