Headers losing relationship to their column when loaded as display:none
Headers losing relationship to their column when loaded as display:none
I am making a single window app that loads 4 tables, however, I only need to display one table at a time, unless I load all of them with display not set to none the headers on those that were hidden gets all out go whack.
Here is a picture: https://dl.dropboxusercontent.com/u/11235/headersIssue.png
Any ideas?
Here is a picture: https://dl.dropboxusercontent.com/u/11235/headersIssue.png
Any ideas?
This discussion has been closed.
Replies
The way to address this is to use the fnAdjustColumnSizing API method. Call it on the table when it is made visible.
There is an example of using that method with jQuery UI tabs here: http://datatables.net/release-datatables/examples/api/tabs_and_scrolling.html
Regards,
Allan