Refiltering the DataTables after the tables get reloaded via AJAX

Refiltering the DataTables after the tables get reloaded via AJAX

rkorebritsrkorebrits Posts: 8Questions: 1Answers: 0
edited November 2012 in General
Hi,
I have a bit of a difficult issue to explain, but I'm going to try. Unfortunately the project I'm working on is only available after logging in and I don't have permission to provide anyone external with details :-(

We have a DataTable with "testers", it is possible to add testers via a lightbox (a lightbox opens with a datatable in it). In the lightbox it is possible to select testers using a checkbox and then clicking "Add". This closes the lightbox and reloads the content of the initial page via AJAX with the newly selected testers. This all works fine, but for some reason, when you apply a filter in the lightbox (e.g. type "rich" to search for "richard"), this filter seems to be persisted onto the DataTable that gets reloaded. So it will only display results that contain "rich", but there is no value in the textfield and when I check the cookie contents for the table, the cookie values are empty.
When I now focus one of the input fields with the mouse and press backspace, it seems to reset the filters.

Does anyone have an idea how I can reset the filters? I have tried oTable[0].fnFilter(), but that doesn't do anything. It seems like the filter is stored somewhere in JavaScript and only when I actually change a value in an input, does i refresh.

I know it is a bit abstract like this, but I hope someone can give me some clues..

Plugins:
- Individual column searcher
- State saving

Thanks!
Rich
This discussion has been closed.