Answers for "how to disable sorting in datatable jquery"

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
0

datatable disable sorting on load

$(document).ready( function() {
    $('#example').dataTable({
        /* Disable initial sort */
        "aaSorting": []
    });
})
Posted by: Guest on June-20-2021

Code answers related to "how to disable sorting in datatable jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language