RowEditor 플러그인이있는 Ext 그리드가 있습니다. 나는 roweditor 객체에 'afteredit'이벤트를 추가하는 다음 코드를 가지고있다.Ext 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'이벤트를 발생 시키지만 때로는 그렇지 않습니다.
위의 코드에 문제가 있습니까?
aftaxit 이벤트가 실제로 실행되지 않는다고 확인 했습니까? 아니면 아약스 콜백이 호출되지 않았습니까? 이것을 확인하기 위해 파이어 버그에 브레이크 포인트를 두 었는가? –