Minimo de colunas no DataTables (Minimum of columns in DataTables)
Minimo de colunas no DataTables (Minimum of columns in DataTables)
Olá, tenho um problema, quando tento fazer uma tabela com 4 colunas ou menos o DataTables não inicializa dando o seguinte erro no console.
Hello, I have a problem, when I try to make a table with 4 columns or less the DataTables does not start giving the following error in the console.
jquery.min.js:2 Uncaught TypeError: Cannot set property '_DT_CellIndex' of undefined
at P (jquery.dataTables.min.js:4)
at D (jquery.dataTables.min.js:4)
at HTMLTableRowElement.<anonymous> (jquery.dataTables.min.js:4)
at jquery.min.js:2
at Function.map (jquery.min.js:2)
at w.fn.init.map (jquery.min.js:2)
at y (jquery.dataTables.min.js:4)
at U (jquery.dataTables.min.js:4)
at s (jquery.dataTables.min.js:4)
at At (jquery.dataTables.min.js:4)
I need Help.
Thanks
Answers
Hi @quebrandolink ,
We're happy to take a look, but it would help, as per the forum rules, if you could link to a running test case showing the issue so we can offer some help. 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
Hi @colin ,
Sorry, I discovered my problem.
columnDefs: [{orderable: false, targets: [4]}],
for this my table presents error with 3 or less collumns.
Thanks for attention.