_fnFilter broken in 1.9.0?
_fnFilter broken in 1.9.0?
blooders
Posts: 10Questions: 0Answers: 0
I don't know if this is by design but the internal API method _fnFilter behaves differently between versions 1.8.x and 1.9.0b4. A table is not updated with unfiltered data if you use this method to clear a previous filter. The difference between versions is that the previous filter values (specifically the text) are no longer set prior to returning from the function.
The external API method fnFilter behaves as expected.
The external API method fnFilter behaves as expected.
This discussion has been closed.
Replies
Having said that, as you note _fnFilter is an internal function and its behaviour is liable to change between versions. The external API will always be stable and that is what should be used where possible. If the external API doesn't provide what is needed an API plug-in can be created that does use the internal methods, but that must be tested between versions, since that internal API can and will change (otherwise DataTables wouldn't be able to progress in development!).
Regards,
Allan
Sorry if I wasn't clear. It's not where the redraw is triggered from. It was just the fact that if you now use _fnFilter to clear a previous filter, the cleared filter is not reflected in the displayed lists when the table is eventually redrawn.
As I say, using the public API methods are very much the way to go if it is possible to use them!
Allan