I am using the kendo-knockout library. I have a numeric text box widget with a max value of 20. If You enter greater value the widget will round it to the max value. So if You enter a value of 50 with the keyboard and lose focus from the input or save the form, the value will be rounded to the max value of 20.
I want when You enter a greater value in the widget text box an error message to be displayed. For that in mind I changed the configuration from:
<input type="number"
data-bind="kendoNumericTextBox: { value: price, min="1", max="20" }" />
to
<input type="number" min="1" max="20"
data-bind="kendoNumericTextBox: { value: price }" />
But the final result is the same. The value is rounded. If I remove the widget:
<input type="number" min="1" max="20" />
I get the desired behavior. Can this be done using the numeric textbox widget?
Here is jsfiddle:
For clarification I have added the desired behavior without the widget. Thanks