Datatables on-the-fly resizing

后端 未结 12 2190
灰色年华
灰色年华 2020-12-12 16:21

I\'m using the marvellous DataTables jQuery plug-in; http://datatables.net/ Added the FixedColumns and KeyTable extras.

Now the table does resize prettily when the

12条回答
  •  無奈伤痛
    2020-12-12 16:45

    might be late also like the other answer but I did this early this year and the solution I came up with is using css.

        $(window).bind('resize', function () {
            /*the line below was causing the page to keep loading.
            $('#tableData').dataTable().fnAdjustColumnSizing();
            Below is a workaround. The above should automatically work.*/
            $('#tableData').css('width', '100%');
        } );
    

提交回复
热议问题