I have a datatable in my program. And I want it to be scrollable horizontally so what I did was like this:
var tableI = $(\'#table_data\').DataTable({
\"bLe
I had the same issue on Google Chrome. This was the fix:
.dataTable(
{
"processing": false,
"serverSide": false,
"autoWidth": true,
"columnDefs": [
{"orderable": false, "targets": [5, 6]}
],
"order": [1, 'asc'],
"dom": 'l<"toolbar">frtip',
drawCallback: function () { // this gets rid of duplicate headers
$('.dataTables_scrollBody thead tr').css({ display: 'none' });
},
scrollY: '65vh',
scrollCollapse: true,
paging: false
});