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

Validate integer

1 Answer 95 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Helen
Top achievements
Rank 1
Helen asked on 10 Apr 2012, 08:51 AM
Hi,

Is there build-in functions to validate integer vs decimal? Date format? Or do I need to use regular expression?
What about comparing 2 strings (equalTo)?

Thank you~

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 10 Apr 2012, 04:50 PM
Hi Helen,

Straight to your questions:

1. I'm afraid there is not such built-in function. You may use either the built-in pattern rule (specifying the required regular expression) or a custom rule.
2. Indeed there is date format validation rule:

<input type="date" data-format="d"/>

3. Here you should also use custom validation rule.

More information about custom validation rules can be found here.

Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Validation
Asked by
Helen
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or