2015-10-05 38 views
0

我可以知道在哪個方向點擊了數字文本框 - 向上或向下?Kendo 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); 
         } 
       }); 
      } 

回答

0

據我所知kendo沒有默認mechanizm來做到這一點。

NumericTextBox have 2 eventschange and spin他們不能幫助你的情況。

我認爲實現這一目標的最佳方式是在點擊事件NumericTextBox上的向上/向下按鈕上添加事件偵聽器。

相關問題