Answers for "datatables disable sorting specific column"

0

sorting disable in datatable bootstrap

$('#id-of-my-table').DataTable({
    "columnDefs": [
        { "orderable": false, "targets": [0, 4, 5, 6] },
        { "orderable": true, "targets": [1, 2, 3] }
    ]
});
Posted by: Guest on August-09-2021
0

Disable Initial Sorting in Datatable

$(document).ready( function() {
    $('#example').dataTable({
        "aaSorting": []
    });
})

For Datatable Version > 1.10
$(document).ready( function() {
    $('#example').dataTable({
        "order": []
    });
})
Posted by: Guest on December-31-2021

Code answers related to "datatables disable sorting specific column"

Code answers related to "Javascript"

Browse Popular Code Answers by Language