Flex: Displaying more than 5 things at a time in DropDown (ComboBox)

I have a ComboBox in Flex with about 20 items. How do I display them all in a dropdown list without a scrollbar? Right now, Flex is displaying 5 at a time in the dropdown and putting scrolling to scroll for more.

Here's an example:

http://blog.flexexamples.com/2008/07/18/setting-the-dropdown-menu-border-thickness-and-border-color-on-a-combobox-control-in-flex/#more-711

How can I enlarge the dropdown menu in this example to display all 10 items at the same time?

+2


source to share


2 answers


Found: "rowCount" is the property that needs to be changed. By default, it is 5.



+9


source


For those looking for the exact same thing for spark combination: for spark components that extend SkinnableDataContainer

(including ComboBox

) you can specify the layout with

requestedMinRowCount

, requestedMaxRowCount



and make as many changes as you want with the skin (this layout goes directly to the DataGroup

skinpart inside the skin).

0


source







All Articles