-
Notifications
You must be signed in to change notification settings - Fork 200
Open
Description
// setup js
onDeleteRow: function(datatable, rowdata, success, error) {
$.ajax({
url: '/api/delete/product/1',
type: 'POST',
data: rowdata,
success: function(response) {
if (typeof success === 'function') {
success(response);
}
},
error: error
});
}
//rowdata are working fine at onAddRow and onEditRow, but it has problem with onDeleteRow
////////// testing data
////// example 03 delete row
let s = {};
s.data = [
{
"id": 1,
"name": "Tiger Nixon",
"position": "System Architect"
}
]
s.data = jQuery.param( s.data, s.traditional );
// s.data = 'Tiger%20Nixon='
////// customer data delete row
let s = {};
s.data = [
{
"p_id": "5",
"p_brand": "mi",
"p_name": "remei"
}
]
s.data = jQuery.param( s.data, s.traditional );
// s.data = 'undefined='
Metadata
Metadata
Assignees
Labels
No labels