can someone explain this error?

can someone explain this error?

affablelochanaffablelochan Posts: 9Questions: 0Answers: 0
edited July 2011 in General
I am totally new to Datatables and jquery. I just followed one of the examples zero_config.html

Error message

"DataTables warning: Unexpected number of TD elements. Expected 21112 and got 21924. DataTables does not support rowspan / colspan in the table body, and there must be one cell for each row/column combination"

Can someone suggest me on this?

My table has row wise header and also coloumn wise header.

Regards
Rajiv

Replies

  • GregPGregP Posts: 500Questions: 10Answers: 0
    Is there one or more TDs missing from the header in your HTML? If you have hidden columns, you need to handle those in the initialization object (I personally use the aoColumns option and then map everything incoming with mDataProp).

    I suspect that it's just what the error is telling you, though: the HTML table doesn't match the data source.
  • affablelochanaffablelochan Posts: 9Questions: 0Answers: 0
    Hi GregP,

    Thanks for replying. I have only hidden table data. But all the columns are visible and created on the fly. So i will try aoColumns as you suggested.

    Rajiv
This discussion has been closed.