Answers for "datatables change column sortable false"

-1

orderable false in datatable

$('#example').DataTable( {
  columnDefs: [
    { orderable: false, targets: 0 }
  ]
} );

reference: 
https://datatables.net/reference/option/columns.orderable
Posted by: Guest on January-29-2021
0

js datatables sort hidden columns

Plain text1234567// Sort column 2 (name) by column 7 (hidden last name) { "orderData":[ 7 ],   "targets": [ 2 ] },{        "targets": [ 7 ],        "visible": false,        "searchable": false    },
Posted by: Guest on July-20-2021

Browse Popular Code Answers by Language