.DataTable() won't initialise because of exception "Unable to set property '_DT_CellIndex'"
.DataTable() won't initialise because of exception "Unable to set property '_DT_CellIndex'"
What does this mean please? Something to do with table columns I think...
TypeError: Unable to set property '_DT_CellIndex' of undefined or null reference at Ha (https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js:24:374) at O (https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js:16:390) at Anonymous function (https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js:17:14) at Anonymous function (https://localhost:44329/Scripts/jquery-3.3.1.js:194:4) at map (https://localhost:44329/Scripts/jquery-3.3.1.js:443:5) at jQuery.prototype.map (https://localhost:44329/Scripts/jquery-3.3.1.js:193:3) at na (https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js:16:490) at e (https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js:92:400) at Anonymous function (https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js:93:118) at each (https://localhost:44329/Scripts/jquery-3.3.1.js:354:5)
Answers
OK THIS MEANS that the number of TH definitions does not match the number of TD definitions. You can get caught out by this if using Bootstrap and using the hidden/visible classes on one but not other.
Yes - the number of columns in the header and the boyd must match, regardless of any
display:none
properties.Allan