Retrieve first displayed row

Retrieve first displayed row

girogiro Posts: 6Questions: 0Answers: 0
edited May 2011 in General
Is there a function that retrieves the first displayed row (irrelevant of sorting order)? It seems that just calling the fnGetNodes(0) returns only the first node in the stored datatables array and not the one that is displayed first on the page.

Thanks for the assistance!

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    $('#tableid tbody tr:eq(0)') would do it - just like a non-DataTables table.

    Allan
  • girogiro Posts: 6Questions: 0Answers: 0
    I ended up just calling: table.fnGetDisplayNodes()[0]

    Thanks!
This discussion has been closed.