TypeError: c is undefined, when binding data in HTML Table

TypeError: c is undefined, when binding data in HTML Table

shenisheni Posts: 1Questions: 1Answers: 0

$("#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

  • Ajit_10Ajit_10 Posts: 1Questions: 0Answers: 0

    I got also same error can you help me pls

  • kthorngrenkthorngren Posts: 21,303Questions: 26Answers: 4,947
    edited November 2018

    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

This discussion has been closed.