Answers for "how to set column width in datatable using jquery"

4

datatables change width of columns

$('#example').dataTable( {
  "autoWidth": false, // might need this
  "columns": [
    { "width": "20%" },
    null, // automatically calculates
    null  // remaining width
  ]
} );
Posted by: Guest on September-08-2020
2

columndefs in datatable not working while setting width jquery

autoWidth: false
Posted by: Guest on June-30-2020
0

datatable column width

columnDefs: [
            { width: 200, targets: 0 }
        ],
Posted by: Guest on July-20-2020
0

datatable width column

table.display {
  margin: 0 auto;
  width: 100%;
  clear: both;
  border-collapse: collapse;
  table-layout: fixed;         // add this 
  word-wrap:break-word;        // add this 
}
Posted by: Guest on February-10-2021

Code answers related to "how to set column width in datatable using jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language