swea tha
swea tha

Reputation: 11

How to avoid entering negative values in kendo numeric text box?

How to avoid entering negative values in kendo numeric text box? By giving "Min:0" it doesnt allow to enter negative values but by moving arrow up and down it allows negative values. Please suggest me how to avoid this?

Upvotes: 1

Views: 5656

Answers (1)

Shion
Shion

Reputation: 1499

Following the Web Demos from here, it is perfectly functioning to only set min to 0.

Note: The settings in kendoUI are case sensitive. Min:0 will not work, you'd have to set min:0

Code:

$("#ntb").kendoNumericTextBox({
    min: 0
});

Demo:

Click Me - jsFiddle

Upvotes: 6

Related Questions