I have a trivial NumericTextBox in my application:
I have an event handler elsewhere that tries this:
This works great as long as the number that numberBox.value() is set to is positive.
If the number is negative it fails.
I've tried messing with the min on the numberBox with no improvement.
How can I set the value() property on a NumericTextBox to a negative value?
$(
"#number"
).kendoNumericTextBox({
format:
"c0"
,
decimals: 2,
spinners:
false
});
function
updateNumber() {
var
numberBox = $(
"#number"
).data(
"kendoNumericTextBox"
);
var
anothernumberBox = $(
"#anotherNumber"
).data(
"kendoNumericTextBox"
);
var
yetanothernumberBox = $(
"#yetanotherNumber"
).data(
"kendoNumericTextBox"
);
try
{
numberBox.value(anothernumberBox.value() - yetanothernumberBox.value());
}
catch
(err) {
//
}
};
If the number is negative it fails.
I've tried messing with the min on the numberBox with no improvement.
How can I set the value() property on a NumericTextBox to a negative value?