set page length menu in datatable code example Example: datatable lengthmenu lengthMenu: [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],