【发布时间】:2019-12-30 01:57:23
【问题描述】:
我在剑道网格here 中有剑道简单演示。
price将根据quantity值更改,如果quantity更改为1,如何恢复默认值?以及如何制作价格栏
editable:false? (如果设置为 true,价格列不能动态变化)有什么想法吗?
save: function(e) {
if (e.values.hasOwnProperty("quantity")){
var current_qty = e.values.quantity;
var current_price = e.model.price;
var totalPrice = current_price * current_qty;
e.model.set('price', totalPrice);
if(e.values.quantity == 1){
console.log('set back to default value') ;
}
}
}
【问题讨论】:
标签: jquery kendo-ui kendo-grid