Flex3 Combobox does not display itemRenderer when closing

I have a combobox with a custom itemRenderer. ItemRenderer displays some images and label. When the combo box opens, the items in the drop-down list are displayed fine, but when it is closed, combobox does not use ItemRendere, but shows "[MyItem object]". Do I need another attribute to indicate that ItemRender should also be used when closing?

This is my tag:

<mx:ComboBox dataProvider="{myItems}" id="itemsCombo" itemRenderer="org.test.myComboBoxItemRenderer" />
+3
source share
1 answer

you need to set the labelField or labelFunction property in the combo box to show the same as your itemrenderer.

+4
source

Source: https://habr.com/ru/post/1723466/


All Articles