Editor remove ajax 'A System error occured"

Editor remove ajax 'A System error occured"

sarath_surisettysarath_surisetty Posts: 54Questions: 13Answers: 0
edited May 2018 in Free community support

hello team

implemented remove , please find the below code, successful deleting but show error on delete popup with message "A system error has occurred (More information)."

Also for othe operations like add and edit , not getting any error message but would like to get call back for all three operations and reload the table.

  remove: {
             type: 'DELETE',
             url:  '/agency/delete',
             contentType: 'application/json',
             deleteBody: false,
             data: function ( editData ) {
                 var idSelected;
                 $.each(editData.data,function(key,value){
                    idSelected=value.agencyId;
                 });
                return JSON.stringify(editData.data[idSelected] );
             },
             success: function () {
                 alert('deleted');
             }
         }

This discussion has been closed.