简体   繁体   中英

Having Select All and Select None Button with in the drop down of Flex 4 Combobox

Flex 4 Combobox is extended with a Text Input that helps in getting to the item that is searched for.

I have created a Check Box as an itemrenderer for this Flex 4 Combobox. I would like to Add a Select All and Select None options in the drop down of the Combobox.

I know that i could accomplish by editing the dropdownfactory in case of a Flex 3 Combobox. But in Flex 4 the dropdownfactory doesnt exist.

Any help please.

try this component....

http://arcadiocarballares.com/?p=637

Could you not just add in two extra items to the ComboBox: Select All, Select None in positions 0 and 1 of the dataProvider. Then when the user selects an item, check if it is 0 and 1 and act accordingly.

It should'nt really matter that all the items will not be highlighted, as the combobox will close anyway the moment the item is selected. I have had to add a Select None option before, and thats how I did it.

Brian

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM