Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81669

width dataTable fixedColumns recalculate

$
0
0
sorry for my english :-)
translated by http://translate.google.ru
Help a table #FixedTables (FixedColumns) when loading a page width of the table is calculated fine, but if we assume unlock the hidden div appears scrolling a page and width of the table is not changed.
    $(document).ready(function () {
        initTable();
        tableActions();

    });
    function initTable() {
        return $('#FixedTables').dataTable({
            "bRetrieve": true,
            "sScrollY": "300px", //(0.5 * $(window).height()),
            "bScrollAutoCss": true,
            "bInfo": false,
            "bSearchable": false,
            "sScrollX": "100%",
            "sScrollXInner": "150%",
            "bDeferRender": true,
            "bAutoWidth": false,
            "bScrollCollapse": true,
            "bPaginate": false,
            "bFilter": false,
            "bSort": false,
            "bProcessing": false,
            "asStripeClasses": ['odd', 'even']
        });
    }

    function tableActions() {
        var oTable = initTable();
        var oFC = new FixedColumns(oTable, {
            "iLeftColumns": 1,
            "iLeftWidth": 150
        });
    }

Viewing all articles
Browse latest Browse all 81669

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>