How to clear table
How to clear table
Initialization Datatables, and return an object : [code]var oTable = $('#example').dataTable();[/code]
I try call oTable.fnClearTable() to clear table. But the data still exists , and after calling fnClearTable(), the data loading method automatically called again
I try call oTable.fnClearTable() to clear table. But the data still exists , and after calling fnClearTable(), the data loading method automatically called again
This discussion has been closed.
Replies
[code]
//nTable: Your table instance
function checkDTInstance( nTable ) {
var table = $.fn.dataTable.fnTables(true);
if(table.length > 0) {
var settings = $.fn.dataTableSettings;
for ( var i=0, iLen=settings.length ; i