开发者

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

开发者 https://www.devze.com 2023-01-19 11:41 出处:网络
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.

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.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消