ajax: {
url: this._listingURL,
method: 'POST',
data: {
fromDate: "",
toDate: "",
},
dataSrc: function (json) {
let json = json;
json.recordsTotal = json.data.length;
json.recordsFiltered = json.data.length;
json.draw = json.data.draw;
var return_data = new Array();
for (var i = 0; i < json.data.length; i++) {
return_data.push({
'id': json.data[i].id,
'srNo': json.data[i].srNo,
'branchId': json.data[i].branchId,
'branchName': json.data[i].branchName,
'centerId': json.data[i].centerId,
'centerName': json.data[i].centerName,
'noOfLoans': json.data[i].noOfLoans,
'staus': json.data[i].staus
})
}
return return_data;
}
},
How To Modifiy the responce data in DataTable ( dataSrc)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment