Seems like it should be easy but…
Does anyone know how to return the current rows from a filtered dataTable? The oTable.fnGetNodes() method returns all rows, where I just want the filtered (visible, but including paginated) ones
// filter on division
var oTable = $('#summary-table').dataTable();
oTable.fnFilter(division_text, 2, true);
// Get the nodes from the table
var nNodes = oTable.fnGetNodes(); // <-- still retrieves original list of rows
I checked: Retrieving visible data from Datatables but not much help there.
Figured out the answer, if anyone ever needs this:
First, using this datatables extension to get all the hidden rows:
Then filter out the hidden nodes to get only visible nodes: