datatables fixed column plugin issue with IE8, when used with tabs
datatables fixed column plugin issue with IE8, when used with tabs
i have issue with fixed column plugin does not work as expected when used with tabs.
if the tab is hidden on click of it i am calling below function, it fixes the issue in mozzila and chrome, but still a issue in IE8.
please help
tabs code
activate: function(event, ui) {
console.log('activated');
/var table = $.fn.dataTable.fnTables(true);
if ( table.length > 0 ) {
$(table).dataTable().fnAdjustColumnSizing();
$(table).dataTable().fnDraw();
}/
$( $.fn.dataTable.tables( true ) ).DataTable().columns.adjust();
//table initialization cod
var table_mapping = $('#example2').dataTable( {
"sScrollX": "100%",
//"bScrollCollapse": true,
"bPaginate": false,
//"bJQueryUI": true,
ordering: false,
"aoColumnDefs": [
{ "sWidth": "10%", "aTargets": [ -1 ] }
]
} );
new $.fn.dataTable.FixedColumns( table_mapping, {
leftColumns: 2
} );
any help will be great
Answers
SOLVED:-
with fnAdjustColumnSizing() function we also need to take care of making
"bAutoWidth": false while initializing the datatabels, everyone seem to miss this point