How can we get server response when we delete a row in edatagrid? I am trying this code below but it does not work.
onDestroy:function(index,row){
console.log(row);
$.messager.show({
title:'Delete Info',
msg:row.msg,
showType:'show',
style:{
right:'',
top:document.body.scrollTop+document.documentElement.scrollTop,
bottom:''
}
});On the server side, I have this code:
if ($result){
echo json_encode(array(
'success'=>true,
'msg'=>$msg
));
exit;
} else {
echo json_encode(array(
'isError'=>true,
'msg'=>'No change in the invoice .'));
exit;
}the
gives me the details of the row I deleted. But I want to get the msg (customized message) I made on the serverside page. I tried onSuccess() method but this does not fire when we delete row. Please help. Thanks.