我想讓我的網格保存更改,當您按下輸入或移走單元格(模糊),而不必使用網格工具欄中的保存按鈕。Kendo UI網格保存在單元格模糊
我很難讓它正常工作,我的PHP/SQL工作正常,所以我相信它是錯誤的網格。
這裏是我的代碼:
$("#grid").kendoGrid({
dataSource: {
transport: {
read: WEBROOT+"admin/fetch-toppers",
update: {
url: WEBROOT+"admin/update-topper",
type: "POST"
}
},
error: function(e)
{
alert(e.responseText);
},
schema: {
data: "data",
model: {
id: 'id',
fields: {
"id": {nullable: true},
"Date": {editable: false},
"name": {editable: false},
"price": {editable: true}
}
}
}
},
columns: [{field: "Date", width: 105}, {field: "name", title: "Topper"}, {field: "price", title: "Price", width: 125}],
height: 550,
filterable: true,
sortable: true,
pageable: true,
editable: true,
navigatable: true,
edit: function()
{
//this.saveChanges()
}
});
我已經嘗試了很多事情,不同的事件,但它沒有任何效果。
如何獲取它以保存單元格模糊值?
謝謝你!!!!! – imperium2335
優秀!謝謝!在劍道論壇有許多線索需要看到這個! – zerodahero