Wrong validation message "Amount should be smaller than 10" in Validator Basic usage example

3 posts, 0 answers
  1. Julien
    Julien avatar
    3 posts
    Member since:
    Jan 2012

    Posted 05 Jan 2012 Link to this post

    Hi,

    In the Validator Basic usage, the "Amount" field is valid for min=1 and max=10.
    When entering a number higher than 10, the validation message is "Amount should be smaller than 10".
    I expected to have "Amount should be smaller than or equal to 10".
  2. Julien
    Julien avatar
    3 posts
    Member since:
    Jan 2012

    Posted 05 Jan 2012 Link to this post

    BTW, the same apply to values lower than the minimum: when entering -1, the following validation message appears: " Amount should be greater than 1" (expected: " Amount should be greater than or equal to 1")
  3. Kendo UI is VS 2017 Ready
  4. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 06 Jan 2012 Link to this post

    Hello Julien,

    Thank you for noticing this, we fixed it for the service pack. Meanwhile as a workaround, you can set the messages manually by passing this object to kendoValidator:
    $("#form").kendValidator({
        messages: {
            min: "{0} should be greater than or equal to {1}",
            max: "{0} should be smaller than or equal to {1}"
        }
    });


    I've updated your points for the find.

    Greetings,
    Kamen Bundev
    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