Why can't I reinitialize or recreate my datatable after destroying it using destroy method?

Why can't I reinitialize or recreate my datatable after destroying it using destroy method?

dt_userdt_user Posts: 51Questions: 16Answers: 0

The datatable is getting data but it is not showing it.
Here is a link with an example of my problem: http://live.datatables.net/fahofoho/1/edit?html,js,output.

Please let me know where I am going wrong.
Thank you.

Answers

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

    Hi @dt_user ,

    You're calling destroy() with true, which will remove the table from the DOM - so there'll be nothing left to recreate later...

    Cheers,

    Colin

This discussion has been closed.