nThs is null - Error message

nThs is null - Error message

findpritzfindpritz Posts: 12Questions: 0Answers: 0
edited May 2010 in General
Hello,

I'm using datatables 1.6.2 in one of my web applications.
When I'm trying to display HTML tables, using dataTables, I get the foll: error message:

nThs is null
for(i=0,iLen=bUseCols?oInit.aoColumns....Col=bUseCols?oInit.aoColumns[i]:null;

which points to line 576 on jquery.dataTables.min.js

Any idea what I'm doing wrong?

Thanks,
Pritish.

Replies

  • findpritzfindpritz Posts: 12Questions: 0Answers: 0
    My call to the dataTables is as follows

    $("#id_of_the_table").dataTable({
    "aaSorting": [[ 2, "desc" ]],
    "iDisplayLength" : 25,
    "sPaginationType" : "full_numbers",
    "sDom": '<"top"lpf>t<"bottom"ip><"clear">',
    "bAutoWidth" : false
    });
  • ikvarmaikvarma Posts: 8Questions: 0Answers: 0
    I came across the same error then i added the "aoColumns" and it is fine now .
    I think it is because of the columns length which is undefined
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Have you got any colspans / rowspans or anything like that? And do the number of TH elements match the number of TD elements? Also I presume that there are at least three columns in the table, since you are starting sorting on the third column?

    If none of that helps, then perhaps you can post a link which would make it easier :-)

    Allan
This discussion has been closed.