I want to set some columns in a table made with Datatable. However, when I use the fixedColumns
property, all it does is duplicate the number of columns that is specified, but it puts it on top of the others, so they overlap.
I attach the code:
$("#reporte").DataTable({
dom: 'Bfrtip',
buttons: [
$.extend(true, {}, buttonCommon, {
extend: 'excelHtml5',
className: 'btn btn-option',
text: '<i class="fa fa-table marginExcel"></i><br> Exportar',
container: '#optionExcel'
})
],
bFilter: false,
bInfo: false,
bLengthChange: false,
bPaginate: false,
'oLanguage': {
'sZeroRecords': false,
'sEmptyTable': false
},
scrollY: 200,
scrollX: true,
scrollCollapse: true,
scrollXInner: '100%',
fixedColumns: {
leftColumns: 0,
rightColumns: 0,
}
});
$("#tblReport").css({
'width': '100%'
});
}
How can I correct it?