开发者

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.


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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜