DataTable breaks Nested Repeater and Bootstrap

The mismatch in the number of header columns cause this issue, there should be equal number of header columns and the row columns. Or the mismatch "aoColumns" or "aoColumnDefs"


I had this problem with the wrong index in the columnDefs:

"columnDefs": [
        {  // set default column settings
            "orderable": false,
            "targets": [1, 2, 4]
        }
]

Note that the targets specify the column index which start at 0. In my case I did not have a 5th column but I mentioned 4 index which was giving me the error.


Check the number of columns set...

"aoColumns": [
    null,
    null,
    { "sType": "uk_date" },
    { "sType": "uk_date" },
    null,
    null
]