Sorting
Sorting
plw
Posts: 34Questions: 13Answers: 0
I only want to sort on the first two columns so how do I stop it from being able to sort on the others? Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
https://datatables.net/reference/option/columns.orderable
Ah thanks. How do you do it for more than one column?
$('#example').dataTable( {
"columnDefs": [
{ "orderable": false, "targets": 0 }
]
} );
Do you just make 0 into an array of columns?
Take a look at the
columnDefs.targets
docs for all the options.Kevin
Lovely that worked - thanks