|
Beta 3? Out?
----- Original Message -----
Sent: Wednesday, May 03, 2006 1:15
PM
Subject: [flexcoders] Re: How does one
build a ComboBox with a Data Grid as the drop down?
i got my hands on flex2 beta3 and dropdownFactory works
fine. heres a simple example for anyone whos
interested
<mx:ComboBox id="cb" labelField="fname"
dropdownWidth="{cb.width*2}">
<mx:dataProvider>
<mx:Object
fname="one"
lname="1"/>
<mx:Object fname="two"
lname="2"/>
<mx:Object fname="three"
lname="3"/>
<mx:Object fname="four"
lname="4"/>
<mx:Object fname="five" lname="5"/>
</mx:dataProvider>
<mx:dropdownFactory>
<mx:Component>
<mx:DataGrid
showHeaders="false">
<mx:columns>
<mx:Array>
<mx:DataGridColumn dataField="fname"/>
<mx:DataGridColumn dataField="lname"/>
</mx:Array>
</mx:columns>
</mx:DataGrid>
</mx:Component>
</mx:dropdownFactory>
</mx:ComboBox>
--- In [email protected], "Matt
Chotin" <[EMAIL PROTECTED]> wrote: > > Make sure you override both
the getter and the setter, I think > overriding just one of them won't
take hold. > > -----Original Message----- > From:
[email protected] [mailto:[EMAIL PROTECTED] On >
Behalf Of Manish Jethani > Sent: Tuesday, May 02, 2006 3:40 AM >
To: [email protected] > Subject: Re: [flexcoders] Re: How does
one build a ComboBox with a Data > Grid as the drop down? >
> On 5/2/06, raghuramab <[EMAIL PROTECTED]> wrote: > > >
I already tried that. Including trying to assign the property in
AS > > code instead of MXML. In either case, I get a flex
compiler error > > saying "Unrecognized combobox property -
dropdownFactory". I am > > using Flex 2.0. Beta 2. > >
Sorry about that: it's coming in Beta 3 ;) > > For now, I think
you should go with Matt's suggestion, which is to > override the
'dropdown' getter > > Manish > > > -- >
Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt >
Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links >
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
|