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

regex in textxbox or in maskededit

1 Answer 212 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Diego
Top achievements
Rank 1
Diego asked on 20 Mar 2010, 12:47 AM
your controls support this functionality or do you have plans to add this functionality?

if yes, an example please


Thanks a lot

1 Answer, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 24 Mar 2010, 04:08 PM
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.

Greetings,
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.
Tags
TextBox
Asked by
Diego
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Share this question
or