Not able to load DataTable function

Not able to load DataTable function

Azmimali229Azmimali229 Posts: 2Questions: 2Answers: 0

Hi, I've come again with another question. So I've created 2 tables where user can export it into pdf. 1 table I created were able to load the DataTable function: the export to pdf while the other table failed instead.

Here is the test case:
The table with loaded Datatable function: http://live.datatables.net/mefizesu/1/
The failed table: http://live.datatables.net/lagaqalo/1/edit

Is there something that I missed? Because all I did was reusing the same line but with different table of the same database.

Thank you.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598
    Answer ✓

    Hi @Azmimali229 ,

    On the failing one you have four <th> elements in the header, but five <td> elements in the body. If you make them match, all is fine.

    Cheers,

    Colin

This discussion has been closed.