Normally, you set the itemRenderer to whatever you renderer is. ________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of posttoumesh Sent: Monday, May 14, 2007 7:12 AM To: [email protected] Subject: [flexcoders] Re: ComboBox Cell Renderer Challenges We are facing teh same problems while trying to set cellrenderer of a combobox drop down.Guys who have got it working please help --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , Matt Chotin <[EMAIL PROTECTED]> wrote: > > I know other folks have gotten it working, though they might not be reading > this weekend :-) Unfortunately I haven't really played with it to know what > might be wrong. > > > > _____ > > From: JesterXL [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 16, 2005 10:42 AM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > Subject: Re: [flexcoders] ComboBox Cell Renderer Challenges > > > > Figured you did, just making sure since I can't view the class files and > confirm for myself. > > > > I tried getDropdown, and both don't work. > > > > getDropdown works in the labelFunction, but I get the same problem with the > first cell not rendering the cellRender, and it's basically the same effect > as using dropdown. > > > > Any other suggestions I can try? > > > > > > ----- Original Message ----- > > From: Matt Chotin <mailto:[EMAIL PROTECTED]> > > To: [email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> > > > Sent: Sunday, January 16, 2005 1:37 PM > > Subject: RE: [flexcoders] ComboBox Cell Renderer Challenges > > > > Yeah, it's probably dropdown, I was typing quickly :-) You can try using > getDropdown() too if need be. > > > > _____ > > From: JesterXL [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 16, 2005 10:32 AM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> > > Subject: Re: [flexcoders] ComboBox Cell Renderer Challenges > > > > The syntax says "dropdown", not dropDown, and when I trace initially, she's > undefined, leading me to believe it wasn't created yet; that's why I used > the labelFunction, figuring by then it was created, but not yet shown... > I'll try again using that syntax. > > > > As for the modelChanged, thank you! I got the the textField to show HTML, > but she isn't showing my image via the img tag... > > > > > > ----- Original Message ----- > > From: Matt Chotin <mailto:[EMAIL PROTECTED]> > > To: [email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> > > > Sent: Sunday, January 16, 2005 1:23 PM > > Subject: RE: [flexcoders] ComboBox Cell Renderer Challenges > > > > Cb.dropDown.cellRenderer = ...; > > > > The modelChanged event of the ComboBox should tell you when the dataProvider > has been updated. The change event would tell you when the selection has > changed if you need to capture that one as well. > > > > Matt > > > > _____ > > From: JesterXL [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 16, 2005 8:57 AM > To: Flexcoders > Subject: [flexcoders] ComboBox Cell Renderer Challenges > > > > Few problems. First, what is the best way to set a cellrenderer for the > dropdown in a ComboBox? I'm doing it in the ComboBox' labelFunction, but > this doesn't set the cellrenderer for the very first element; I only see > traces for the rest of the cell renderers. > > Secondly, I can emulate my cell renderer in the ComboBox's textfield, but > how can I capture the refresh of the dataprovider so I can inject my own > HTML around the label? > > Thanks if you can help! > > --JesterXL > > > > > > _____ > > Yahoo! Groups Links > > * To visit your group on the web, go to: > http://groups.yahoo.com/group/flexcoders/ <http://groups.yahoo.com/group/flexcoders/> > <http://groups.yahoo.com/group/flexcoders/ <http://groups.yahoo.com/group/flexcoders/> > > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] <mailto:flexcoders-unsubscribe%40yahoogroups.com> > <mailto:[EMAIL PROTECTED] <mailto:flexcoders-unsubscribe%40yahoogroups.com> ? subject=Unsubscribe> > > * Your use of Yahoo! Groups is subject to the Yahoo! > <http://docs.yahoo.com/info/terms/ <http://docs.yahoo.com/info/terms/> > Terms of Service. >

