make columns unsortable in dataTables.js jQuery plugin -


i using datatables.js jquery plugin.

the first column of table row counter, don't want sortable user. last column contains action link user can perform on row. how can make these 2 columns unsortable?

note: using pipeline (server-side process) mode of datatables.

this done setting bsortable false:

/* using aocolumndefs */ $(document).ready(function() {     $('#example').datatable( {         "aocolumndefs": [              { "bsortable": false, "atargets": [ 0 ] }         ] } ); } );  /* using aocolumns */ $(document).ready(function() {     $('#example').datatable( {         "aocolumns": [              { "bsortable": false },             null,             null,             null,             null         ] } ); } ); 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -