Single Row Delete Editor hangs
Single Row Delete Editor hangs
Hi Support,
I am trying to delete row through Editor , If table contains multiple rows then delete works well and if table having single row and if delete then editor hangs. I am using below code to delete.
$('#achievementtable').on('click', 'tbody td.editor_remove', function (e) {
e.preventDefault();
if ($('#ach_repid').val() == $('#ach_loginid').val()) {
editor.remove( $(this).parents('tr')[0], '123', false, false );
editor.submit();
}
} );
Regards.
Sunil
Answers
Hi Sunil,
Does the browser's console show any errors? Also, could you show me the parameters that it submits to the server and the JSON returned from the server?
Many thanks,
Allan
Hi Allan,
Browser console is not showing any error . I am giving below parameters while delete.
ajax: {
url: "user_targets_achievement_datelist_update.php",
data: function ( d ) {
d.repid = $('#ach_repid').val();
d.month = $('#ach_month').val();
}
},
[ **Note : keep in mind that if table having more than 1 rows then that works well. **]
Regards.
Sunil
Hi Allan,
Please guide me what to do next to resolve this issue.
Regards.
Sunil
Hi Sunil,
Could you show me the data that is being submitted to the server and also the data (JSON) that is being returned from the server please? The network activity tab in your browser's inspector will show the information about what is sent to and received from the server.
Regards,
Allan
Hi Allan,
This is data submitted to server and received from server.
//parameters send to Server
action:"remove"
data[row_20][DT_RowId]:"row_20"
data[row_20][trade_date]:"21-02-2017"
data[row_20][noofaccounts]:"1000"
data[row_20][marginmoney]:"0"
data[row_20][brokerage]:"0"
repid:"001"
month:"February"
Output from Server which is empty.
data:Array
Regards.
Sunil
Hi Allan,
Please look this and send mail if you want to see issue through team viewer.
Regards.
Sunil
That data looks okay. I think we probably will have to do a TeamViewer session again. Could you send me an e-mail when you are available tomorrow.
Thanks,
Allan