jQuery Selection on HTML Elements within Datatable: Ignore Pagination

jQuery Selection on HTML Elements within Datatable: Ignore Pagination

maxresigmaxresig Posts: 7Questions: 2Answers: 0
edited May 2021 in Free community support

Hello all,

Description of problem:
I output some hidden HTML content in my rows.
On a table refresh (whereever it is coming from, e.g. from external filtering events, global search or similarly), I want to fetch the data of those hidden HTML elements ignoring pagination. That means: Filtered rows should be ignored, but all the displayed rows from all pages should be considered.

How can I do this?

Link to test case:
http://live.datatables.net/deludodu/1/edit?html,css,js,console,output

Setting pageLength == 25, gives me both elements in the console output (foobar2 is on page 2 if chosing pageLength==10).

After redrawing:
{attr: "foobar"}
{attr: "foobar2"}

When setting back to pageLength == 10, it only yields the {attr: "foobar"} element, but I would be expecting also foobar2 (as I said: is on page 2, but not filtered out).

Only when filtering, I would only expect the visible rows (but again: from all pages).

Thanks so much in advance!

Error messages shown:
N/A

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.