How to load data from an ajax request into Datatables

Asked

Viewed 482 times

0

I would like to know a way to load data from an ajax call to datatables.

so I can reload the chart. I am clicking by a method in ajax that passes to the table in the date object, but when I call the method again to reload the table I get the error:

Datatables Warning: table id=images - Cannot reinitialise Datatable. For more information about this error, Please see http://datatables.net/tn/3

1 answer

1


After a long search I was able to solve the problem. just add the following parameter at startup:

 destroy: true

source: Stackoverflow EN

Browser other questions tagged

You are not signed in. Login or sign up in order to post.