Uncaught TypeError: Cannot set property 'nTf' of undefined

Uncaught TypeError: Cannot set property 'nTf' of undefined

SunExSunEx Posts: 1Questions: 1Answers: 0

I am just trying to implement Rowdetails in my data table. I found an example in the site and just following. The only difference i am making is non server side processing and its throwing an exception. The version of js and css i am using from http://datatables.net/release-datatables/examples/server_side/row_details.html

$(document).ready(function() {
var dt = $('#example').dataTable( {
// "processing": true,
// "serverSide": true,
"ajax": "data/sis.json",
"columns": [
{
"class": "details-control",
"orderable": false,
"data": null,
"defaultContent": ""
},
{ data: "host" },
{ data: "backipv4" },
{ data: "frontipv4" },
{ data: "nagios" },
{ data: "currentproduct" }
],
"order": [[1, 'asc']]
} );

Answers

  • shadowiishadowii Posts: 1Questions: 0Answers: 0

    Getting this behavior as well after updating to datatables 1.10.x. Line 1751 in jquery.dataTables.js.

  • bentleybradbentleybrad Posts: 3Questions: 0Answers: 0

    Shadowii, the most obvious thing without seeing more of your code

    You are using a table footer (tfoot), and have more columns (th/td) defined in the footer row than you do in the body of the table.

This discussion has been closed.