jquery.dataTables.min.js:105 Uncaught (in promise) TypeError: Cannot read properties of undefined (r
jquery.dataTables.min.js:105 Uncaught (in promise) TypeError: Cannot read properties of undefined (r
ercanxx
Posts: 1Questions: 1Answers: 0
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
<table id="tablo">
<thead id="theaad">
<tr>
<th colspan="2" style="background-color: gray;">ÜRÜNLER</th>
</tr>
</thead>
<tbody id="tbdy">
</tbody>
</table>
<tr>
<th rowspan="2" style=" background-color: red;">${satir[j].GrupKodu}</th>
<td style="display:;">xTutar</td>
${tdTutar}
${TopTutar}
</tr>
<tr>
<td style="display:;">x1Miktar</td>
${tdMiktar}
${TopMiktar}
</tr>
`; // text --END--
$("#tbdy").html(text);
Edited by Kevin: Syntax highlighting. Details on how to highlight code using markdown can be found in this guide
Answers
Your code snippets are confusing but it looks like you are using
colspan
in the header. This is supported by Datatables but you also need a header row with oneth
for each column. See this Complex header example for more details. Also look at the HTML requirements docs to make sure you are providing an HTML table that Datatables supports.If you still need help please post a link to your page or a test case replicating the issue so we an help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin