How can i insert the number of records as an option in the lengthMenu.
e.g if there are 15 records show 15 as an available option in the lengthMenu.
lengthMenu': [[8, -1], [8, 15]]
I don't believe there is a built in way to dynamically set the length values based on the number of rows. You could use a little jQuery magic to update the lengthMenu in initComplete to change value All, for example, to the number of rows. Use the page.info() to get the total number of rows.
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.