Cannot read property 'aoColumns' of null
Cannot read property 'aoColumns' of null
Hello,
I'm a newbie with DataTables, and I've truble with ColReorderWithResize.js. This error occured during DataTables() initialization:
Uncaught TypeError: Cannot read property 'aoColumns' of null (ColReorderWithResize.js:524)
Everything work fine: datable work fine (search, pagination ...), I can change columns order and resize it.
This is how I initialize my table:
$('.dataTable').each(function(){
$(this).dataTable({
/* French labels */
"oLanguage" : {
"sUrl" : "js/vendors/jquery-plugins/jquery-datatable/datatable.french.txt"
},
/* set pagination style */
"sPaginationType" : "bootstrap",
/* set columns sortable and resizable */
"sDom": "Rlfrtip",
/* sort data by its 2nd column */
"aaSorting": [ [1,'asc'] ]
});
});
And this is my html table:
TABLE MNR
Smegma
Tenesme
1
Ktapulte
Qlture
2
KparK
Qcuxklan
Anybody know how to solve this error ?
Thank's
I'm a newbie with DataTables, and I've truble with ColReorderWithResize.js. This error occured during DataTables() initialization:
Uncaught TypeError: Cannot read property 'aoColumns' of null (ColReorderWithResize.js:524)
Everything work fine: datable work fine (search, pagination ...), I can change columns order and resize it.
This is how I initialize my table:
$('.dataTable').each(function(){
$(this).dataTable({
/* French labels */
"oLanguage" : {
"sUrl" : "js/vendors/jquery-plugins/jquery-datatable/datatable.french.txt"
},
/* set pagination style */
"sPaginationType" : "bootstrap",
/* set columns sortable and resizable */
"sDom": "Rlfrtip",
/* sort data by its 2nd column */
"aaSorting": [ [1,'asc'] ]
});
});
And this is my html table:
TABLE MNR
Smegma
Tenesme
1
Ktapulte
Qlture
2
KparK
Qcuxklan
Anybody know how to solve this error ?
Thank's
This discussion has been closed.
Replies
Allan
If I remove ColReorderWithResize.js (and "sDom": "Rlfrtip" in constructor), i have another error:
Uncaught TypeError: Cannot read property '_iDisplayStart' of null (datatables.bootstrap.js:25)
Allan
Allan