how to disabled sorting in datatable
how to disabled sorting in datatable
sainix
Posts: 13Questions: 6Answers: 0
$(document).ready(function () {
var table= $('#datatable').dataTable();
var tableTools = new $.fn.dataTable.TableTools(table, {
'aButtons': [
{
'sExtends': 'print',
'bShowAll': true,
},
{
'sExtends': 'pdf',
'bFooter': false
},
],
'sSwfPath': '//cdn.datatables.net/tabletools/2.2.4/swf/copy_csv_xls_pdf.swf'
});
$(tableTools.fnContainer()).insertBefore('#datatable_wrapper');
});
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
https://datatables.net/reference/option/ordering
Anyway you could update your DataTables version? With DataTables 1.10, you can include all the cool extensions and plugins when you download the main js file. That would allow you to configure your buttons using the new way https://datatables.net/extensions/buttons/examples/