Is it possible setting default sorting table by second column with disable change sorting?
I try in this way but on header of second column an arrow is visible. I want remove all arrow with the default sorting.
var table = data.DataTable({
"pageLength": 5,
"lengthChange": false,
"info" : false,
"responsive": true,
"ordering": true,
"order": [ 1, "asc" ],
"columnDefs": [{
"targets": "_all", "orderable": false
}],
"data": result,
"columns": [
{ "data": null },
{ "data": "Class" },
{ "data": "count" },
{ "data": "group" }
]
});
table.on('order.dt', function () {
table.column(0, { search: 'applied', order: 'applied' }).nodes()
.each(function (cell, i) {
cell.innerHTML = i + 1;
});
}).draw();