How to get the datatable or the filtered data from within fnFooterCallback?
How to get the datatable or the filtered data from within fnFooterCallback?
robertbrower
Posts: 158Questions: 1Answers: 0
I'm using fnFooterCallback to calculate min, max, average, etc. and showing that info in the tfoot->tr>th.
This works well when using aaData that gets passed into the function. But I want to show this info for just the filtered rows.
How to get the datatable or the filtered data from within fnFooterCallback?
Thanks!
Robert
This works well when using aaData that gets passed into the function. But I want to show this info for just the filtered rows.
How to get the datatable or the filtered data from within fnFooterCallback?
Thanks!
Robert
This discussion has been closed.
Replies
, "fnFooterCallback": function (nRow, aaData, iStart, iEnd, aiDisplay) {
aaData = settings.$timelineTable.dataTable()._('tr', { "filter": "applied" }) // get the filtered data
.
.
.
}
See also: http://datatables.net/forums/discussion/2053/fnfootercallback-sum-column-after-filter/p1
Allan