Select visible columns and widths

Select visible columns and widths

ElgueuElgueu Posts: 2Questions: 0Answers: 0
edited March 2010 in General
Hi guys,

First thanks for the script, it is really good.

I'm playing around with the fnSetColumnVis() to make some of my columns visible or not, but I have trouble with the way dataTables behave after you hide or show columns : it does not apply again its "smart calculation of widths" to all the visible columns.
If I activate the cookie, show a column that was hidden, the column widths are crappy, but if I reload the page (the previously hidden column is now visible at init), the widths are good.
So is there a way to force DT to recalculate the column widths dynamically and apply the change after I show/hide a column ?

Thanks
This discussion has been closed.