fnDestroy not work

fnDestroy not work

Massimo74Massimo74 Posts: 85Questions: 1Answers: 0
edited March 2020 in Free community support

Here

I have to delete the table and then repopulate it with the data but fnDestroy does not seem to work

Replies

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

    Yep, try destroy(), see here.

    Colin

  • kthorngrenkthorngren Posts: 21,174Questions: 26Answers: 4,923

    Just to add to Colin's comment. You are getting this error in the browser's console:

    Uncaught TypeError: $(...).DataTable(...).fnDestroy is not a function

    Kevin

  • Massimo74Massimo74 Posts: 85Questions: 1Answers: 0

    Here
    give me a hand please I would like to create a dynamic table with unknown number of columns, my table is created easily, but then I have problems when the table already exists

  • wubstepperwubstepper Posts: 1Questions: 0Answers: 0

    You saved me a night of research @Massimo74 ! Thank you so much.

This discussion has been closed.