I have been trying to remove the ordering filter that makes the dataTable
default in the columns of the table and I have not been able so far, if someone knows, it would help me a lot!
I attach the code that I have tried
var tableData = $('#table').DataTable( {
scrollY: "400px",
scrollX: true,
scrollCollapse: true,
paging: false,
columnDefs:[{
targets: "_all",
searchable: false
}],
fixedColumns: {
leftColumns: 3
}
});
Attached screenshot of the table:
The option you are looking for is
sortable
:Sets the ordering property to false when initializing the table.