regex in textxbox or in maskededit

2 posts, 0 answers
  1. Diego
    Diego avatar
    17 posts
    Member since:
    Feb 2010

    Posted 19 Mar 2010 Link to this post

    your controls support this functionality or do you have plans to add this functionality?

    if yes, an example please

    Thanks a lot
  2. Boyko Markov
    Boyko Markov avatar
    610 posts

    Posted 24 Mar 2010 Link to this post

    Hello Diego,

    Thank you for contacting us, Diego.

    The RadMaskedEditBox control does not support the "Regex" mask type. I will put your feature request in our TO DO list and we will consider implementing it in one of the upcoming releases. Unfortunately,  I am not able to give you an exact time-frame when the feature will be available. 

    I think that you can simulate the input by subscribing to the TextChanged event of the  RadTextBox and then use the Regex.Match method to test whether the textbox's text matches with the required regex expression. If the text box's string is invalid you can put an error provider component which will pop up an error message and will notify you that the entered string value is invalid.   

    I hope this helps. If you have more questions, feel free to write us.

    Boyko Markov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top