Uncaught TypeError:Cannot read property 'className' of undefined.
Uncaught TypeError:Cannot read property 'className' of undefined.
sagarthatte
Posts: 1Questions: 1Answers: 0
I am rendering a table using the .dataTables (version 1.9.x).
I get the above error, when I tried to add an additional column to the table.
I verified that I have same number of <th> (headers) and same number of <td> elements (data).
My .dataTables call looks like this:
jQuery("#opportunity_report_table").dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aaSorting": [],
"aLengthMenu": [
[25, 50, 100, 200, -1],
[25, 50, 100, 200, "All"]
],
"iDisplayLength": -1,
"aoColumnDefs": [{"sType": "currency", "aTargets": ["currencyColumn"]},
{"sType": "date-euro", "aTargets": ["dateColumn"]}],
"sDom": '<"H"Tlfr>t<"F"ip>',
"oTableTools": {
"aButtons": [{
"sExtends": "text",
"sButtonText": "Export to Excel",
"fnClick": function ( nButton, oConfig, oFlash ) {
exportToExcel();
}
}
]
}
});
I am clueless about the issue. Can someone help?
This discussion has been closed.
Answers
I'm afraid its virtually impossible to say what is wrong here without a link to a test case, as requested in the forum rules. If you post a link to a test page showing the issue I can take a look, even although 1.9 is no longer supported.
Allan