Getting the remaining data in the table after search is applied.

Getting the remaining data in the table after search is applied.

AndersHPAndersHP Posts: 36Questions: 14Answers: 1

Hi,

Im trying to get the remaining rows in the data after search/filtering.

Im trying this, but it doesnt recognize the function. Should it work this way?

var table = $('#example').DataTable();

table._('tr', {"filter":"applied"}); 

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Answer ✓

    _ is not function of the $().DataTable() returned object - it is a legacy API method.

    I would suggest using rows() - e.g. table.rows( { search: 'applied' } ).data().

    Allan

This discussion has been closed.