bStateSave issue when page has multiple instances

bStateSave issue when page has multiple instances

rkorebritsrkorebrits Posts: 8Questions: 1Answers: 0
edited September 2012 in General
Hi,
I'm struggling with this:
I have a page with 3 tables (behind different tabs) and individual column searching and state saving. When I filter after page load, everything goes well, however if apply a filter in the first table (for some reason only happens with this table) and I reload the page, the other 2 tables are also filtered based on the criteria in the first table and thus show up empty. If I then in the other 2 tables press a key (like 'backspace'), the table reloads properly based on the fact that there are no searchfields with content.

What can cause this behaviour? It only happens on page load and not on input...

I have checked the values of the datatables in Chrome's console on page load with below code to make sure the cookie values are stored and read correctly , and that all seems fine, "sSearch" is only set for the item I entered something. So it must be somewhere after initialization, when it draws the table (i think)

[code]
oSettings = $('#datatable_commentaar').dataTable().fnSettings();
oSettings.aoPreSearchCols;

oSettings = $('#datatable_attachment').dataTable().fnSettings();
oSettings.aoPreSearchCols;
[/code]

Unfortunately the page is behind a logged in/secured area, so can't give an example.

I'm using v1.9.3

Replies

  • rkorebritsrkorebrits Posts: 8Questions: 1Answers: 0
    edited September 2012
    Debug uploaded:
    http://debug.datatables.net/oqecor

    Could it have anything to do with:
    [code]
    $.fn.dataTableExt.afnFiltering.push(
    [/code]
This discussion has been closed.