PagedTable icon indicating copy to clipboard operation
PagedTable copied to clipboard

setPageLength() is overriden by input field default value

Open ghost opened this issue 12 years ago • 4 comments

Hi, if I set thePageLength property to a value (e.g. 50), it will be overriden bythe default (25) value of the input box.

Regards,

  • Tobi

ghost avatar Aug 30 '13 12:08 ghost

Hi Tobias,

Do you have a solution for that issue?

wattwurm avatar Oct 14 '13 05:10 wattwurm

Any update on this issue? Is there a way to set the default page size to something other than 25?

CSBaum avatar Jun 23 '15 20:06 CSBaum

By creating your own controls you can decide what it should do and how it should look. I'd recommend going that part. Grid got a similar add-on recently and it omitted default controls completely for reasons like these.

Peppe avatar Jun 24 '15 08:06 Peppe

I had to change the source because of this issue and I believe it should be fixed. Tnx for the plugin.

int pageLength = table.getPageLength();
if (pageLength == 5 || pageLength == 10 || pageLength == 25 || pageLength == 50)
        itemsPerPageSelect.select(pageLength + "");
else
        itemsPerPageSelect.select("25")

Daniel

dstr89 avatar Oct 09 '16 10:10 dstr89