Disable sort on first column in Jquery Datatables

Disable sort on first column in Jquery Datatables

Dunno if this is bug or not, but disable sort in HTML nor Javascript will not affect for first column sorting in Datatables. The solution just define bSort = false

1
2
3
4
5
6
var table = $('#table-index').dataTable({
            serverSide : true,
            sAjaxSource : url,
            autowidth : false,
            fnServerData : setupAjax,
            bSort: false,

One Reply to “Disable sort on first column in Jquery Datatables”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.