Avoiding append tr in tbody in a empty table
Avoiding append tr in tbody in a empty table
I have an empty table which is filled with actions of the user but at the begining is empty and is important for the validations that tbody stays empty, when I initialize the table with DataTable, the library append an empty <tr> in the tbody with odd class, how to avoid this behavior, and not to append this row?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
It shouldn't be an empty
tr, it should have atdin it with text saying "No records found" or similar.If you don't want that empty row at all, you could remove it with a
drawCallbackfunction: http://live.datatables.net/ketetohe/1/edit .Allan