Craig Mc
Craig Mc

Reputation: 505

Flex 4: how to have a drop down list of Checkboxes

How would I get a drop downlist to populate with check boxes. I am porting a c# project to flex, and I would like to imitate the functionality of their checkbox drop list.

Anyone got any idea how I would go about this.

Please and thank you.

Upvotes: 1

Views: 3709

Answers (2)

Wade Mueller
Wade Mueller

Reputation: 6059

Typically you do this by creating a custom ItemRenderer and assigning it to your DropDownList. Here's an example of creating/applying a custom ItemRenderer in a DropDownList:

http://blog.flexexamples.com/2010/05/13/setting-the-text-roll-over-color-on-a-spark-dropdownlist-control-in-flex-4/

Hope that helps.

Upvotes: 2

Adrian Pirvulescu
Adrian Pirvulescu

Reputation: 4340

you could extend the popup-button and add custom item renderer for the items in the dropdown.

http://www.adobe.com/livedocs/flex/2/langref/mx/controls/PopUpButton.html

Upvotes: 0

Related Questions