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
Post a Comment