Datatable don't complet colum correctly

Datatable don't complet colum correctly

edusil16edusil16 Posts: 1Questions: 1Answers: 0

I have a data table that uses the scrollx, but everything works normal, but when I use the scrol the table has flaws in the columns, mainly losing image pixels and some columns are left blank and coming out of the content container.
my code follows below.

SettingTable(table) {
$(table).DataTable({
'bSort': false,
'bPaginate': true,
'bLengthChange': true,
'bInfo': true,
"responsive": true,
"pageLength": 10,
'stateSave': false,
'bAutoWidth': false,
"bDeferRender": true,
"scrollX": true,
language:
{
"sEmptyTable": "Nenhum registro encontrado",
"sInfo": "Mostrando de START até END de TOTAL registros",
"sInfoEmpty": "Mostrando 0 até 0 de 0 registros",
"sInfoFiltered": "(Filtrados de MAX registros)",
"sInfoPostFix": "",
"sInfoThousands": ".",
"sLengthMenu": "MENU resultados por página",
"sLoadingRecords": "Carregando...",
"sProcessing": "Processando...",
"sZeroRecords": "Nenhum registro encontrado",
"sSearch": "Pesquisar",
"oPaginate": {
"sNext": "Próximo",
"sPrevious": "Anterior",
"sFirst": "Primeiro",
"sLast": "Último"
},
"oAria": {
"sSortAscending": ": Ordenar colunas de forma ascendente",
"sSortDescending": ": Ordenar colunas de forma descendente"
}
}
}).columns.adjust();
$(".dataTables_wrapper ").removeClass("container-fluid");
}

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.