fnFilter and Totals in fnFooterCallback

fnFilter and Totals in fnFooterCallback

doug_hale_jrdoug_hale_jr Posts: 22Questions: 0Answers: 0
edited May 2009 in General
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

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Hi Doug,

    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
  • doug_hale_jrdoug_hale_jr Posts: 22Questions: 0Answers: 0
    Thanks Again Allan! It was an easy change to make. Great Job!!
  • basilbearbasilbear Posts: 10Questions: 0Answers: 0
    You da man!
This discussion has been closed.