datatbles 1.7.2 bug multiples tables
datatbles 1.7.2 bug multiples tables
cbalmefrezol
Posts: 11Questions: 0Answers: 0
Hi,
I have a bug with the new version( work fine with 1.7.1):
DataTables warning (table id = 'affichage_requete'): Unexpected number of TD elements. Expected 40 and got 160. DataTables does not support rowspan / colspan in the table body, and there must be one cell for each row/column combination.
o.aoColumns[iVis] is undefined
[Break on this error] nThs[i].style.width = o.aoColumns[iVis].sWidth;
screenshot: (Last datatable have two headers! other datatables work fine!)
http://hastatis.com/data1.7.2.PNG
my datatable script:
[code]
oTable = jQuery('.affichage_requete').dataTable({
"bJQueryUI": true,
"bPaginate": false,
"aaSorting": [],
"bLengthChange": false,
"sScrollY": 250,
"sScrollX": "100%",
"sDom": '<"H"lfr<"fright ftop"ip>>t<"clear">',
"oLanguage": {
"sProcessing": "Traitement en cours...",
"sLengthMenu": "Afficher _MENU_
I have a bug with the new version( work fine with 1.7.1):
DataTables warning (table id = 'affichage_requete'): Unexpected number of TD elements. Expected 40 and got 160. DataTables does not support rowspan / colspan in the table body, and there must be one cell for each row/column combination.
o.aoColumns[iVis] is undefined
[Break on this error] nThs[i].style.width = o.aoColumns[iVis].sWidth;
screenshot: (Last datatable have two headers! other datatables work fine!)
http://hastatis.com/data1.7.2.PNG
my datatable script:
[code]
oTable = jQuery('.affichage_requete').dataTable({
"bJQueryUI": true,
"bPaginate": false,
"aaSorting": [],
"bLengthChange": false,
"sScrollY": 250,
"sScrollX": "100%",
"sDom": '<"H"lfr<"fright ftop"ip>>t<"clear">',
"oLanguage": {
"sProcessing": "Traitement en cours...",
"sLengthMenu": "Afficher _MENU_
This discussion has been closed.
Replies
Allan
Date arr
Allan
[code]
Mot cle
Immatriculatrion adversaire
D
The problem will only show up with two tables, with different number of columns, initialised at the same time, and without an aoColumns option in the initialisation object.
So there are a couple of workarounds possible:
1. Use DataTables 1.7.1 - unfortunately I introduced this issue while solving something else.
2. Initialise the two tables separately
3. Hang about a little bit while I commit a fix and then grab the latest source. I'll post back here when committed.
Regards,
Allan
Regards,
Allan
Laurent
I meet some problem when I use datatables 1.7.2 with the 1st 3columns-table and the 2nd 2columns-table
It shows the following fatal error :
sData is undefined dataTables.js line: 719
But my table is well-formatted and whole DOM also is well.
and I use this 1.7.3 dev version.
It's resolved.
Allan