Search code examples
comboboxvaadinvaadin8

Vaadin ComboBox popup sizing Issue


I am having an issue with the Vaadin 8 ComboBox.I want to adjust the PopUp page according to the no. of records . Because since the default value is 10 and say if I am having 41 records , I am being left with almost a blank page with only one record at the last page . Is there any way to fix this ?

screenshot


Solution

  • I would recommend to check ComboBox.setPageLength(x) method

    JavaDoc states:

    Sets the page length for the suggestion popup. Setting the page length to 0 will disable suggestion popup paging (all items visible).