How do I know whether a row has been filtered out?
How do I know whether a row has been filtered out?
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!
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!
This discussion has been closed.
Replies