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

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

2 Answers 90 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Julien
Top achievements
Rank 1
Julien asked on 05 Jan 2012, 02:05 PM
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 Answers, 1 is accepted

Sort by
0
Julien
Top achievements
Rank 1
answered on 05 Jan 2012, 02:10 PM
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")
0
Kamen Bundev
Telerik team
answered on 06 Jan 2012, 09:09 AM
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!
Tags
Validation
Asked by
Julien
Top achievements
Rank 1
Answers by
Julien
Top achievements
Rank 1
Kamen Bundev
Telerik team
Share this question
or