setPageLength() is overriden by input field default value
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
Hi Tobias,
Do you have a solution for that issue?
Any update on this issue? Is there a way to set the default page size to something other than 25?
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.
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