In the current version of Datatables is it possible to auto-resize columns after show/hideing them with the API?
My question is specifically for IE8, for firefox fnAdjustColumnSizing() seems to work.
For my specific case here are some details incase it helps:
-The column widths are not specified at all in the html
-Data is added using fnAddData()
-Columns are hidden/shown using fnSetColumnVis()
-The following is my table initialization:
My question is specifically for IE8, for firefox fnAdjustColumnSizing() seems to work.
For my specific case here are some details incase it helps:
-The column widths are not specified at all in the html
-Data is added using fnAddData()
-Columns are hidden/shown using fnSetColumnVis()
-The following is my table initialization:
Roster.oTable = $('#rosterTable').dataTable({ "bJQueryUI": true, "sScrollY": "300px", "bScrollCollapse": true, "bPaginate": false, "sDom": 'T<"clear"><"fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix"lfr>t<"fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"ip>', //(required for table tools to show up) "oTableTools": { "sSwfPath": "../DataTables-1.9.4/extras/TableTools/media/swf/copy_csv_xls_pdf.swf", "aButtons": [ "copy", { "sExtends": "print", "fnComplete": function ( nButton, oConfig, oFlash, sFlash ){ Roster.ToggleNonTableVisibility(); return false; }, "sMessage": "<button id='returnButton' onclick='TableTools.fnGetInstance(\"rosterTable\")._fnPrintEnd({keyCode:27, preventDefault:function(){}})'>Return to " + Common.APP_TITLE + "</button>" }, { "sExtends": "collection","sButtonText": "Save", "aButtons": ["csv", "xls", "pdf"], } ] } });