How do I re-index search?
How do I re-index search?
flowerchild22
Posts: 2Questions: 0Answers: 0
I periodically change the text content of my table dynamically after it has been created (not using any methods from datatables.js). Search will still display rows based on the old data. I have tried calling fnDraw without success. How can I trigger a re-indexing of table data for search?
This discussion has been closed.
Replies
Allan
[code]
function refreshTable(oTable, originalOptions) {
oTable.fnDestroy();
oTable.dataTable(originalOptions);
}
[/code]
Not efficient, but seems to work fine (couldn't get bDestroy working, seemed to always mess up the layout). Thanks for a fantastic library Allan!