Last Updated: 08 Oct 2021 08:28 by ADMIN
Created on: 01 Oct 2021 09:45
Category: Validator
Type: Feature Request
add support to Validator for HTML5 minLength and maxLength attributes on input elements of type "text", "url", "email" and "password"

Not so recently HTML 5 has added minLength and maxLength attributes (including form based validation) to their spec for input fields of the above mentioned types. Kendo UI Validator does not seem to use them during validation. It is, of course, possible to add a custom validation rule, however, it would be much preferred to use the built-in mechanism in modern browsers to do so.

Standard reference

HTML 5 standard maxLength and minLength


Demonstration code which does not fire a validation error:

<!DOCTYPE html>
    <meta charset="utf-8"/>
    <title>Kendo UI Snippet</title>

    <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2021.3.914/styles/kendo.default-v2.min.css"/>

    <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
    <script src="https://kendo.cdn.telerik.com/2021.3.914/js/kendo.all.min.js"></script>
    <form class="myValidator">
      <p><input type="text" name="age" minlength="3"></p>
      <button id="validate" class="k-button k-primary" type="button">Validate</button>

        var validator = $(".myValidator").kendoValidator({
            minlength:"Number must be greater than 3"

1 comment
Posted on: 08 Oct 2021 08:28


Thank you for this feature request. We will consider it based on the demand and the popularity of the item. 

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/.