Cannot set property '_DT_CellIndex'
Cannot set property '_DT_CellIndex'
pmargreff
Posts: 1Questions: 1Answers: 0
Hey there, I've been this error and I can't figure out why it happens, I'm not using colspan here, so it isn't the problem.
But the strange thing here is, it doesn't happen the first time I enter, or when I reload the page, the problem only occurs when I'm navigating go to another page and came back to the page with the table.
Any idea?
here is my initialization:
$.fn.dataTable.moment( 'DD/MM/YYYY' );
var table = $(table_id).DataTable({
scrollX: true,
"columns": columns,
colReorder: true,
dom: 'Bfrtip',
buttons: [
{ extend: 'colvis', text: 'Selecionar colunas'},
{ extend: 'excelHtml5',
exportOptions: {
columns: ':visible'
},
text: 'Exportar para excel'
}
],
bPaginate: false,
bInfo: false,
bFilter: false,
stateSave: true,
"language": {
"decimal": ",",
"thousands": ".",
"search": "Buscar:"
}
});
This discussion has been closed.
Answers
Can you show me the contents of your
columns
variable please?My guess is that the number of columns defined in it doesn't match the HTML.
Happy to take a look at a test case.
Allan