Reload table data with Ajax response

Reload table data with Ajax response

divyag10divyag10 Posts: 3Questions: 3Answers: 0
edited June 2014 in Free community support

I have a datatable which I destroy using ---- table.destroy(),
then I reinitialize the entire datatable giving parameter ---- ajax:"new data source",
but getting datables.net/tn/7 error.

Also tried the following
$('#datagrid').dataTable().fnClearTable();
var table = $('#datagrid').DataTable();
table.fnReloadAjax(response);
datatable is getting cleared, but not getting reloaded.

what am I doing wrong...?

This discussion has been closed.