Fixed Header autoWidth not working

Fixed Header autoWidth not working

vortexofhatevortexofhate Posts: 2Questions: 1Answers: 0

I have a DataTable that I am using and wanted to add the FixedHeader to it. When I added the FixedHeader to it, it is using the header before the autoWidth takes place and the headers do not align up with the columns at all. Is this a bug, or did I miss something?

Here is the code that I am currently using. Any help will be greatly appreciated.

    var oTable = $('#test').dataTable({
        autoWidth: true, 
        processing: true,
        pageLength: 10,
        lengthMenu: [[10, 25, 50, 100, -1], [10, 25, 50, 100, 'All']],

        columnDefs: [
            { type: 'alt-string', targets: [10, 11, 12, 13, 14, 15, 16, 17, 18] },
        ],
        ajax: {
            type: 'POST',
            url: 'test.php',
        },
    });

   new $.fn.dataTable.FixedHeader(oTable);

Answers

This discussion has been closed.