I used to do
theCombo.getDropdown().cellRenderer = 'MyCellRenderer';
Not sure if you have to surround the class with quotes.
 
Philippe Maegerman

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of moyosaned
Sent: lundi 7 novembre 2005 12:20
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Cellrenderer For ComboBox

Anybody....My cellrenderer is working in a List. But not in de List
used in the ComboBox.


--- In flexcoders@yahoogroups.com, "moyosaned" <[EMAIL PROTECTED]> wrote:
>
> created an cellRenderer, I want to use this cellrenderer in a combobox;
>
> I tried the following:
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:ComboBox xmlns:mx="http://www.macromedia.com/2003/mxml"
> creationComplete="initApp()">
>
>       <mx:Script>
>       <![CDATA[
>             import bla.bla.FlexBoxRenderer;
>             import bla.bla.MultiLineCell;
>             import org.panda.gpn.utils.Debug;
>            
>             public function initApp():Void{
>
>                   this.dropdown.setCellRenderer(MultiLineCell);
>
>             }
>            
>       ]]>
>       </mx:Script>
>
> </mx:ComboBox>
>
> I use the creationComplete, otherwise the dropdown does not exists
> where I have to set the cellRenderer for. but nothing happens after
> it, I am not tracing anything when I fill the Combobox.dataprovider
>
> So anybody
>






--
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




------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY**

This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.
------------------------------------------------------------------

Reply via email to