ここにあなたのための解決策があります:http://jsfiddle.net/a6Ek2/8/
var numericTextBox = $("#bar").kendoNumericTextBox({
format: "d",
value: 1,
step: 2, }).data('kendoNumericTextBox');
numericTextBox.element.parent().find('.k-link').mousedown(function () {
var value = numericTextBox.value();
if (value % 2 === 0) {
if ($(this).find('span.k-icon').hasClass('k-i-arrow-n')) {
numericTextBox.value(value - 1);
}
else {
numericTextBox.value(value + 1);
}
} });
キーボードからのデータ入力をブロックし、ステップ オン 2 を設定することもできます。
$("#foo").kendoNumericTextBox({
format: "d",
value: 1,
step: 2,
});
$("#foo").attr('readonly', true);