jQuery : DataTables : Disable sorting for all columns

Enable or disable sorting of columns

Sorting of individual columns can be disabled by the “bSortable” option for each column.

Note that this will disable sorting all around, so there is no need to disable it on individual columns

1
2
3
4
5
$(document).ready( function () {
  $('#example').dataTable( {
    "bSort": false
  } );
} );

To disable individual columns visit this link

Source:

http://legacy.datatables.net/usage/features#bSort

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s