Show fixed or all rows in a datatable

Show fixed or all rows in a datatable

krishna1krishna1 Posts: 2Questions: 1Answers: 0
edited August 2013 in General
I have a requirement where i need to show either a fixed number of rows or else show all the rows when a show all button is clicked on. I dont need the normal bLengthChange and the bPaginate functions. I saw that setting aLengthMenu as [[25,-1]] will do this job if i have a normal bLengthChange selection. But is it possible without the normal bLengthChange option to change the iDisplayLength on click of a button.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Use the fnLengthChange plug-in API method: http://datatables.net/plug-ins/api#fnLengthChange .

    DataTables 1.10 has this ability built in :-)

    Allan
This discussion has been closed.