0

我可以知道在哪个方向单击了 numerictextbox - 向上还是向下?

                    $('<input name="' + options.field + '"/>').appendTo(container).kendoNumericTextBox({
                        min: 1,
                        max: 9,
                        decimals: 1,
                        format: "n0",
                        value: 1,
                        spin: function(el) {
                                var count = this.value(),
                                    model = options.model;
                                model.set("quantity", count);
                                addCharacteristic(count);
                                setPrice(e, count, model);
                        }
                });
            }
4

1 回答 1

0

据我所知,没有默认机制kendo可以做到这一点。

NumericTextBox有 2 个事件 changespin他们对您的情况无能为力。

我认为实现这一点的最佳方法是在点击事件的上/下按钮上添加事件侦听器NumericTextBox

于 2015-10-06T09:07:10.210 回答