table = $("#table_role_list").DataTable(); (window).resize(function () { table.columns.adjust(); });