How can i avoid this kind of Cannot reinitialise DataTable .

How can i avoid this kind of Cannot reinitialise DataTable .

KaungKaung Posts: 12Questions: 2Answers: 0

I have a error with this kind of problem Cannot reinitialise DataTable .
But i fix the code with i just add
$("#tbl-treport").dataTable().fnDestroy();

So it does not appear no more. But i have a problem with calculated footercallback total value.

thanks.

Here is the problem.

Answers

  • KaungKaung Posts: 12Questions: 2Answers: 0

    I got the answer because of this line of code. $("#tbl-treport").dataTable().fnDestroy();

    so need to change $("#tbl-treport").dataTable().Destroy();

    So it works now.

This discussion has been closed.