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

Kendo Validation

1 Answer 178 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 19 Dec 2012, 07:00 PM
I have the following questions about Kendo validation:
- When you mark a given control with the required attribute, is it possible to indicate that a string value of all spaces is not valid?
- Is it possible to specify the min and max length a text box value?
-

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 21 Dec 2012, 01:18 PM
Hi Brian,

By default the build-in HTML validator validates space in required inputs of type text (example), which is the reason why Kendo validator do the same. 
If you want to avoid that my recommendation is to use a regex pattern or custom validation rule. The same applies for the min/max length of text boxes.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Brian
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or