Wednesday, 12 November 2014

Change in bootstrap datatable

How to change default sorting & disable sorting.












  $('.dataTables-example').dataTable({
"order": [[ 7, "desc" ]],
columnDefs: [
  { orderable: false, "targets": -1 }
]
});

Notes: 1.It will change default sorting to 7 column
2. Disable sorting form last column.

0 comments:

Post a Comment