Value of iDisplayLength

Value of iDisplayLength

jdadwilsonjdadwilson Posts: 127Questions: 30Answers: 1
edited April 2014 in General
Is it possible to obtain the value of iDisplayLength outside of the dataTable initialization? If so, how? I have tried... var maxRows = oTable.iDisplayLength.value but it returns undefined.

TIA for any assistance
jdadwilson

Replies

  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    In 1.9- you need to use a plug-in: http://datatables.net/plug-ins/api#fnPagingInfo

    In 1.10+ you can use the `page.info()` API method: http://next.datatables.net/reference/api/page.info() (you need to manually add the `()` to the URL - I need to update the forums' auto linker...)

    Allan
This discussion has been closed.