fnFilter and Totals in fnFooterCallback
fnFilter and Totals in fnFooterCallback
doug_hale_jr
Posts: 22Questions: 0Answers: 0
My boss is wanting the totals I'm calculating in the fnFooterCallback function to reflect changes in the filter. Is there a way to do this?
Thanks
Doug Hale
Thanks
Doug Hale
This discussion has been closed.
Replies
There certainly is - you just need to base your calculations of the aiDisplay array of indexes. This is the list of rows which are shown after filtering. My footer callback shows this in action: http://datatables.net/examples/example_footer_callback.html
Allan