Select: Changing the number of rows/page

Hi,

is there any way to change the number of rows that the dropdown for the select shows. Currently it always displays chunks of up to 10 rows per page. I want to configure it dynamically depending on the number of items the underlying datasource has, e.g. show all rows, when there is less than 15 items in total.

There is an attribute “pageLength” in the Select class, but no getter or setter for this like there is e.g. for filteringmode…

Cheers
Andreas

Extending the ComboBox should give you access to the pageLength attribute.

Hello Jouni,

that was easy, thank you!

But please consider making this part of the standard API…

Cheers
Andreas

I agree, this should be a public API. I’m not sure if there’s a ticket already about it in our Trac, but could you check and create a new one if you can’t find it? Thanks!

Hello Jouni,

I have opened a ticket for this:

http://dev.vaadin.com/ticket/5381

Regards
Andreas

What about adding a scrollbar to the list of options instead of the paging widget that sends you to the next group of results?
Is that a feature that has been requested yet?