The dropdown is not treated like a factory class (like cell renderers). You can override the dropdown getter to do what you want, and if you're so inclined make it writable in your subclass.
Matt -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Monday, February 20, 2006 1:52 AM To: [email protected] Subject: [flexcoders] Re: problem with cell renderer in ComboBox i would also like to see the dropdown property made into a 'Read/Write'. i had to override the getDropdown() method which gave me problems when going from flex1 to 1.5 (i know this method is not in the api) other technologies such as PowerBuilder is not an issue. --- In [email protected], "Anatole Tartakovsky" <[EMAIL PROTECTED]> wrote: > > Matt, > Is it possible to downgrade ComboBox::dropdown property in the next beta/final release to ListBase so the subclassing/ability to show more complex dropdowns is possible? Also, what are the chances of relaxing base types of the internal properties of the controls a bit (when it does not affect performance) from strongly typed to lower levels/split them to interfaces. > Without code decoration/polymorphism in the base objects the current architecture is much more code and time consuming for control development and can be showstopper for 3rd party controls. > > Sincerely, > Anatole > > ----- Original Message ----- > From: Matt Chotin > To: [email protected] > Sent: Sunday, February 19, 2006 1:16 AM > Subject: RE: [flexcoders] Re: problem with cell renderer in ComboBox > > > labelField isn't necessary if you have a cell renderer. Any chance you > can just use labelFunction if all you're doing is concatenation? I'm > almost positive variableRowHeight also isn't going to work. > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of george_lui > Sent: Friday, February 17, 2006 11:10 AM > To: [email protected] > Subject: [flexcoders] Re: problem with cell renderer in ComboBox > > good call, but it didn't work. Really weird. Do you think I still > need the labelField attribute? > > TIA, > George > > > --- In [email protected], "Matt Chotin" <mchotin@> wrote: > > > > What if you take out the quotes around the renderer? > > > > -----Original Message----- > > From: [email protected] [mailto:[EMAIL PROTECTED] > On > > Behalf Of george_lui > > Sent: Thursday, February 16, 2006 3:50 PM > > To: [email protected] > > Subject: [flexcoders] problem with cell renderer in ComboBox > > > > Hi, > > > > I had a cellrenderer that was originally used in datagrid cell. I've > > since replaced the datagrid with a comboBox. I'm trying to reuse the > > same cellrenderer in the combo using the code below. > > > > <mx:ComboBox id="employeeComboBox" > > creationComplete= > > > > > "event.target.getDropdown ().cellRenderer='com.sf.sfv4.view.sharkfin.Full > > NameRenderer'; > > event.target.getDropdown().variableRowHeight=true" rowCount="10"> > > <mx:dataProvider> { ModelLocator.employees } </mx:dataProvider> > > </mx:ComboBox> > > > > The FullNameRenderer cellrenderer I have just takes the first and last > > name of a user vo and concatenates it. > > > > However this isn't working for the combobox. I get and set the > > cellrenderer of the combobox's dropdown property as stated in this > > group by another member, but it doesn't work. Instead I get the user > > vo object displayed. > > > > I'm confused, I'm using the same dataProvider and cellrenderer in the > > combobox as I did in the datagrid. I think there's a difference > > between the two widgets, but I just don't know what it is. > > > > Please advise... > > > > TIA, > > George > > > > > > > > > > > > -- > > 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 > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com > > > > SPONSORED LINKS Web site design development Computer software development Software design and development > Macromedia flex Software development best practice > > > ------------------------------------------------------------------- ----------- > YAHOO! GROUPS LINKS > > a.. Visit your group "flexcoders" on the web. > > b.. To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > > ------------------------------------------------------------------- ----------- > -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

