DataTables does not cope with colspan
DataTables does not cope with colspan
RdeBoer
Posts: 10Questions: 0Answers: 0
Thanks for this great library. Works a treat.
One quibble: DataTables does not seem to like colspans anywhere in the table. If the table has a td with a colspan attribute, you get:
"Uncaught TypeError: Cannot read property 'className' of undefined" (jquery.dataTables.js, line: #669)
I can understand that colspans are hard to deal with when sorting columns that go across a colspan. But sorting on other columns is theoretically possible, right?
Moreover, the above error also occurs when sorting is OFF. In other words the search-box/filter facility also breaks in the presence of a colspan.
I've been using v1.9.4 and the table below to reproduce this error:
Head1
Head2
Head3
Info
Drupal
7.23
OK
Access to update.php
Whatever...
OK
CTools CSS Cache
Exists
Warning
PHP_CodeSniffer not installed.
One quibble: DataTables does not seem to like colspans anywhere in the table. If the table has a td with a colspan attribute, you get:
"Uncaught TypeError: Cannot read property 'className' of undefined" (jquery.dataTables.js, line: #669)
I can understand that colspans are hard to deal with when sorting columns that go across a colspan. But sorting on other columns is theoretically possible, right?
Moreover, the above error also occurs when sorting is OFF. In other words the search-box/filter facility also breaks in the presence of a colspan.
I've been using v1.9.4 and the table below to reproduce this error:
Head1
Head2
Head3
Info
Drupal
7.23
OK
Access to update.php
Whatever...
OK
CTools CSS Cache
Exists
Warning
PHP_CodeSniffer not installed.
This discussion has been closed.
Replies
Allan
So you wouldn't consider making it work when just the search-box is active and no other features?
Allan
This really causes us a big problem.
Can you suggest anything?
Thanks, Allan
Allan