jquery datatable fix column width code example
Example 1: columndefs in datatable not working while setting width jquery
autoWidth: false
Example 2: datatables change width of columns
$('#example').dataTable( {
"autoWidth": false, // might need this
"columns": [
{ "width": "20%" },
null, // automatically calculates
null // remaining width
]
} );
Example 3: datatable column width
columnDefs: [
{ width: 200, targets: 0 }
],