KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Datatable Page lengthMenu #2071

Open noa opened this topic on on May 11, 2021 - 1 comments

noa commented on May 11, 2021

Hey, Im trying to do this : DataTables::create(array(

...
"options" => array(
    "pageLength" => 10,
    "lengthMenu" => [5, 10, 25, 50, "All"],
)

));

after I saw it on another post but that the result I get:

Sebastian Morales commented on May 12, 2021

Pls set "lengthMenu" like this:

    "lengthMenu" => [ 5, 10, 25, 50, -1 ],

or like this:

    "lengthMenu" => [ [ 5, 10, 25, 50, -1 ], [ 5, 10, 25, 50, "All" ] ],

Let us know how it works for you. Tks,

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None