aoColumnDefs calling ColVis.js
aoColumnDefs calling ColVis.js
Hi guys,
I'm having this strange issue where my code is calling the ColVis.js on a table I am not using it on, causing an error :
"Cannot read property '1' of null". If I remove aoColumnDefs then it works fine. Am I missing something? Here is my initialization
[code]
$('#mailTable').dataTable({
"aoColumnDefs": [
{"sType": "title-numeric", "aTargets": [0] }
],
"bLengthChange": false,
"iDisplayLength": 10,
"sPaginationType": "full_numbers",
"bStateSave": true
});
[/code]
Thanks!
I'm having this strange issue where my code is calling the ColVis.js on a table I am not using it on, causing an error :
"Cannot read property '1' of null". If I remove aoColumnDefs then it works fine. Am I missing something? Here is my initialization
[code]
$('#mailTable').dataTable({
"aoColumnDefs": [
{"sType": "title-numeric", "aTargets": [0] }
],
"bLengthChange": false,
"iDisplayLength": 10,
"sPaginationType": "full_numbers",
"bStateSave": true
});
[/code]
Thanks!
This discussion has been closed.
Replies
Allan