Trouble with column header alignment
Trouble with column header alignment
I've been having issues with getting the column headers to properly align with the actual columns. Normally this is fixed after manually sorting a column.
This example has some issues (two search boxes, can't seem to sort) that were introduced when copying the files over and removing sensitive information but the column header alignment issue is present exactly as it is in our normal system.
I have in the past tried removing the non datatables features (jquery tabs, tabletools button) but the alignment is an issue even when only the table is available.
The example can be seen at: http://antechmfg.com/Report.htm The issue is much more prominent on the totals tab.
This example has some issues (two search boxes, can't seem to sort) that were introduced when copying the files over and removing sensitive information but the column header alignment issue is present exactly as it is in our normal system.
I have in the past tried removing the non datatables features (jquery tabs, tabletools button) but the alignment is an issue even when only the table is available.
The example can be seen at: http://antechmfg.com/Report.htm The issue is much more prominent on the totals tab.
This discussion has been closed.
Replies
I know DataTables requires - which you have - but I can't remember whether it also requires . Might be worth a shot.
Regarding `td` elements in the `thead` - DataTables does support `td` and `th` elements in `thead` (and in the `tbody` and `tfoot` elements as well) - both cell types in any of the three container elements are technically and semantically valid and correct. It is often a good idea to use `th` in the header to make it clear that it is a header cell, but it isn't required.
Allan
Allan
This did eventually work. Initially I thought there were still some issues but it turns out the show event used in your linked example has been changed to activate (show was deprecated in 1.9 and removed in 1.10)
http://stackoverflow.com/questions/17549339/show-callback-is-not-firing-jquery-ui-tabs
Thought you might want to know this.
Allan