Nothing springs to mind from the initialisation (thanks for that), other that ensuring that you have exactly 11 columns in each row (DataTables does not support colspan / rowspan in the TBODY).
Could you put the unminified version of DataTables into place and let me know what the error is from that? It might give a bit more of a clue as to where in the code this is happening at least!
Thank for that - could you also check that you have 11 column headers? The error you are getting suggests that there might be less column headers than there are columns.
DataTables requires there to be a unique column header cell for each column - basically so it can attach the sort listener to the header element for each column. colspan and rowspan are support in the header, but there must still be a unique cell for each column (i.e. no colspan).
Replies
I'm using 1.8.2 and several API plugins (not sure offhand which ones).
The call itself is pretty simple:
[code]
oTable = $('#contextData').dataTable({
"sScrollY":"600px",
"bPaginate":false,
"bSortClasses":false,
"aoColumns":[
{ "bSortable":false },
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"aaSorting":[
[1, 'asc']
]
});
[/code]
Nothing springs to mind from the initialisation (thanks for that), other that ensuring that you have exactly 11 columns in each row (DataTables does not support colspan / rowspan in the TBODY).
Could you put the unminified version of DataTables into place and let me know what the error is from that? It might give a bit more of a clue as to where in the code this is happening at least!
Regards,
Allan
The unminified version gives this error:
Exception calling dataTable: TypeError: nThs[i - iCorrector] is undefined
/devAOI/ (line 124)
DataTables requires there to be a unique column header cell for each column - basically so it can attach the sort listener to the header element for each column. colspan and rowspan are support in the header, but there must still be a unique cell for each column (i.e. no colspan).
Allan
Thank you!