我有一個分機網格RowEditor插件。我有下面的代碼添加到'roweditor'對象的'事件'事件。分機RowEditor.js不火「afteredit」事件
store.on('update',function(){
});
editor.on("afteredit",function(roweditor,changes,record,index){
$.ajax({
url: $("#web").val() + "/registration/client/address-save"
,type: 'post'
,data: record.json
,dataType: 'json'
,success: function(data){
if(data.success == true){
alert("Update Successfully");
}
}
});
});
當我點擊一行,並編輯值,有時電網火患「afteredit」事件,但有時事實並非如此。
我必須跟我上面的代碼中的問題?
你已經證實,afteredit事件實際上是不點火,對你的Ajax回調不會被調用?你有沒有在Firebug中設置一個斷點來確認? – 2010-04-05 21:38:08