Well, unfortunately, we didn't think it common enough to build into
CombBox.  You can work with my example and modify it or maybe someone
has already solved it, but it isn't built in.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Rodseth
Sent: Thursday, June 19, 2008 10:57 AM
To: [email protected]
Subject: Re: [flexcoders] Disabled items in dropdown

 

I just want the (very) common form/dialog element that has a few items
to select, some of which might be disabled. I realize that ComboBox can
support a long scrolling list. If there's another control I should be
using, by all means enlighten me. PopupMenuButton only opens on a click
in the arrow, and doesn't drop down in quite the same way.

If I'm not mistaken, the example on your blog doesn't do anything about
highlighting.

Thanks.

On Thu, Jun 19, 2008 at 9:50 AM, Alex Harui <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

Menu supports disabling, but dropdown List doesn't?  You can disable
list selection via an example on my blog.

 

________________________________

From: [email protected] <mailto:[email protected]>
[mailto:[email protected] <mailto:[email protected]> ]
On Behalf Of Richard Rodseth
Sent: Thursday, June 19, 2008 8:54 AM
To: [email protected] <mailto:[email protected]> 
Subject: [flexcoders] Disabled items in dropdown

 

I realize this is probably an FAQ, but it beats me why I can disable
items in a PopupMenuButton, but not a ComboBox:

    <mx:XMLList id="treeDP2">
        <node label="Inbox"/>
        <node label="Calendar" enabled="false"/>
        <node label="Deleted Items"/>
    </mx:XMLList>

        <mx:ComboBox dataProvider="{treeDP2}" labelField="@label" />

        <mx:PopUpMenuButton id="p2" 
            dataProvider="{treeDP2}" 
            labelField="@label"
            />

So I was thinking of trying to style the PopupMenuButton to look more
like the Combo (centered menu, click anywhere to open). But if anyone
has a ready-made solution, I'm all ears.

 

 

Reply via email to