can i ignore the dataTables warning about not supported rowspan / colspan?
can i ignore the dataTables warning about not supported rowspan / colspan?
some_coder
Posts: 4Questions: 0Answers: 0
Hello,
I am using DataTables 1.8.1 with jQuery 1.6.1. I created a table with some colspans. The DataTables plugin is used because of the pagination feature (so that multiple big tables can be reduced to some tables with "only" 20 records). Problem is that i got the following warning in Firebug:
[quote]DataTables warning: Unexpected number of TD elements. Expected 72 and got 49. DataTables does not support rowspan / colspan in the table body, and there must be one cell for each row/column combination.[/quote]
I use only the pagination stuff (no sorting, no filter...). Can i just ignore this message or will there be problems with some browsers? Our customer shouldn't get some messageboxes telling him that there is some kind of error. I am asking because i already got some messages like "colVis not supported" (if i recall it correctly).
The code is server side generated. Depending on the content the first two columns will be combined via colspan. Here is a Code example. I already had to do a workaround for the "there are more columns in the thead than in the tbody"-message.
http://live.datatables.net/oqisux/4/edit#javascript,html
I am using DataTables 1.8.1 with jQuery 1.6.1. I created a table with some colspans. The DataTables plugin is used because of the pagination feature (so that multiple big tables can be reduced to some tables with "only" 20 records). Problem is that i got the following warning in Firebug:
[quote]DataTables warning: Unexpected number of TD elements. Expected 72 and got 49. DataTables does not support rowspan / colspan in the table body, and there must be one cell for each row/column combination.[/quote]
I use only the pagination stuff (no sorting, no filter...). Can i just ignore this message or will there be problems with some browsers? Our customer shouldn't get some messageboxes telling him that there is some kind of error. I am asking because i already got some messages like "colVis not supported" (if i recall it correctly).
The code is server side generated. Depending on the content the first two columns will be combined via colspan. Here is a Code example. I already had to do a workaround for the "there are more columns in the thead than in the tbody"-message.
http://live.datatables.net/oqisux/4/edit#javascript,html
This discussion has been closed.
Replies
Allan
Allan
The best "workaround" would be to generate a standards-compliant HTML table.