I typically use the mask to prevent the user from entering in "bad" characters. Is this possible with MaskTextBox? I only saw a handful of predefined rules. I know I can use validation too. Perhaps the best method is to notify the user their input is bad AND not allow it to be inputted...
3 Answers, 1 is accepted
0
Accepted
Marin Bratanov
Telerik team
answered on 07 Jan 2021, 06:57 PM
Hello Jason,
At the moment, the only way to do that would be through a data annotation validation - e.g., a regex (you can find a couple of examples here).
Would the ability to define custom rules solve your case? You can see how that would work in our Reach suite that already has this capability here (see the second example). If yes, we could open up a feature request page for you to monitor this on our feedback portal.
Regards,
Marin Bratanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Yes the feature like Reach would be perfect. The MaskedTextBox is great for numbers like date and phone, but apostrophe is very common in names, as well as some extended ascii for accented letters. Annotation/validation is working out fine for us as an alternative.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.