TypeError: c is undefined, when binding data in HTML Table
TypeError: c is undefined, when binding data in HTML Table
$("#btn").click(function () {
$("#myTable").DataTable({
"processing": true,
"serverSide": true,
"filter": true,
"orderMulti": false,
"ajax": {
"url": "/Receipt/test",
"dataSrc": "Data",
"type": "POST",
"datatype": "json"
},
"columnDefs":
[{
"targets": [0],
"visible": false,
"searchable": false
}],
"aoColumnDefs": [{
"bSortable": false,
"aTargets": [1, 2]
}],
"columns": [
{ "data": "Paid", "name": "Paid", "autoWidth": true },
{ "data": "Balance", "name": "Balance", "autoWidth": true },
{ "data": "TotalAssignedFee", "name": "TotalAssignedFee", "autoWidth": true },
]
});
});
Answers
I got also same error can you help me pls
Its hard to say without having information about your config. A search of the forum indicates others have had issues with JSON structure, column config mismatches, etc.
Please post a link to your page or a test case replicating the issue. You could try running the debugger and posting the resulting code.
https://datatables.net/manual/tech-notes/10
Kevin