How do I know whether a row has been filtered out?

How do I know whether a row has been filtered out?

jeromedtjeromedt Posts: 6Questions: 1Answers: 0
edited August 2011 in General
Hi guys,
I'm using DataTables and lovin' it!

Now, I'm wondering if there's a better way to do what I'm trying to achieve.
I have a table where I added a footer which is populated thru fnFooterCallback.
I also have a custom filter which uses $.fn.dataTableExt.afnFiltering.push to indicate what s/b filtered out.
In the fnFooterCallback function, I haven't found a way to determine whether a row has been filtered out. So I'm forced to keep a global array that I populate in $.fn.dataTableExt.afnFiltering.push and whose values I use in fnFooterCallback.

Is there already something (some internal data structure?) in DataTables that I could access within fnFooterCallback that would tell me whether the table row is filtered out or not?

Thanks!

Replies

  • dmcleandmclean Posts: 55Questions: 2Answers: 0
    In the Plug-ins section there is a bunch of functions that you can add to the DataTables API. I use fnGetHiddenNodes() which returns a list of the nodes that are not displayed because they have been filtered out.
This discussion has been closed.