Validate integer

2 posts, 0 answers
  1. Helen
    Helen avatar
    5 posts
    Member since:
    Mar 2012

    Posted 10 Apr 2012 Link to this post


    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~
  2. Rosen
    Rosen avatar
    3247 posts

    Posted 10 Apr 2012 Link to this post

    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.

    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top