Get the number of rows

Get the number of rows

girogiro Posts: 6Questions: 0Answers: 0
edited July 2011 in General
How do you get the number of rows in a datatable?

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    It is a little obscure but:

    [code]
    oTable.fnSettings().fnRecordsTotal();
    [/code]

    will do it. Where oTable is the DataTables instance.

    Allan
This discussion has been closed.