Why the number of rows in jquery datatable (see the code below) is not set to 5? It is equal to 10 8as by default). Why \'iDisplayLength\': 5 does
jquery datatable
\'iDisplayLength\': 5
This is definetely the easiest way I found:
var oTable; $(document).ready(function() { $('.some-button').click( function () { var oSettings = oTable.fnSettings(); oSettings._iDisplayLength = 50; oTable.fnDraw(); }); oTable = $('#example').dataTable(); });