FixedColumns doesn't restore header columns on when calling fnDestroy
FixedColumns doesn't restore header columns on when calling fnDestroy
Hello,
I'm using DataTables x-axis scrolling & FixedColumns in conjunction with the Adapt.js grid layout (which determines CSS files to include based on the browser width). If my page is too narrow to see the whole table, I enable DataTable x-axis scroll and FixedColumns and fix the first and last column of the table. When the page resizes there's a callback function I use to resize the DataTable. Everything works great until the page width is so wide that the x-axis scrolling is not necessary. I call oTable.fnDestroy() but the first and last column of the header row do not reappear. Is there any workaround to this, or is there something other than fnDestroy() I can do in this scenario?
Thanks
I'm using DataTables x-axis scrolling & FixedColumns in conjunction with the Adapt.js grid layout (which determines CSS files to include based on the browser width). If my page is too narrow to see the whole table, I enable DataTable x-axis scroll and FixedColumns and fix the first and last column of the table. When the page resizes there's a callback function I use to resize the DataTable. Everything works great until the page width is so wide that the x-axis scrolling is not necessary. I call oTable.fnDestroy() but the first and last column of the header row do not reappear. Is there any workaround to this, or is there something other than fnDestroy() I can do in this scenario?
Thanks
This discussion has been closed.
Replies
If that doesn't help, can you post a link to a test case please.
Allan
http://dev.givingdata.gitscloud.com/temp/fixedcols/default.html
http://jsfiddle.net/tBjys/