Read ONLY Table Rows that are Currently Visible

Read ONLY Table Rows that are Currently Visible

OgrehulkOgrehulk Posts: 9Questions: 3Answers: 0

It seems that everything I have found so far is to ask how to read all rows including hidden. However, I would like to do the opposite. I had asked a question on this thread about saving: https://datatables.net/forums/discussion/42889/saving-multiple-rows-after-editing-cells.

The information given works. However, when I get the rows to save, the code is iterating through the entire data set. I would like to only work with the filtered rows, if possible.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,822Questions: 1Answers: 10,127 Site admin
    Answer ✓

    Use the page option of the selector-modifier object. For example:

    let rows = table.rows( { page: 'current' } );
    

    Allan

This discussion has been closed.