Answers for "sortable datatable"

-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
1

sort datatable c#

Datatable.DefaultView.Sort = "Preferance ASC";
Posted by: Guest on February-19-2020

Browse Popular Code Answers by Language