fnDestroy not working

fnDestroy not working

qbikqbik Posts: 2Questions: 0Answers: 0
edited November 2011 in General
Hi,
Thanks for this wonderful plugin. I have a table when I am dynamically removing rows using oTable.fnDeleteRow(); everything works o. When my table reaches 10 node I call oTable.fnDestroy(); and I no longer see the pagination or search divs. Then I jump to regular $(this).remove(); when removing a TR. However even if oTable has been destroyed I get error: s is null.

This leads me to believe oTable was not destroyed. I also check if oTable is defined so when it has been destroyed I jump straight to regular $(this).remove(). Here is the code:

[code]
if (typeof oTable != 'undefined'){

oTable.fnDeleteRow(iPos);
oTable.fnDraw();

if (nNodes < 10){
oTable.fnDestroy();
}
} else {
currentTR.remove();
}
[/code]


Thanks for your help
This discussion has been closed.