Bod,
    We are actually supporting our DGComboBox as a standard object in our framework. As far as Flex 2, it is also supported - just implementation is different - listItemRenderer is dynamically created instead of grid. So there is no code change in the application - just internal implementation is different.
However, if you are "starting fresh" with Flex 2  and do not want 3rd party components this will do:
               <mx:ComboBox labelField="fname"
                       dataProvider="{..}"
                       width="200" >
                     <mx:listItemRenderer >
                           <mx:Component verticalGap="0">
<mx:HBox xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" verticalGap="0"
   hScrollPolicy="off" vScrollPolicy="off" >
  
       <mx:Label text="{dataObject.fname}" width="50%" /><mx:VRule height="20"/>
        
       <mx:Label text="{dataObject.lname}" width="50%"/>
 
 </mx:HBox>
                           </mx:Component>
                     </mx:listItemRenderer>
               </mx:ComboBox>
 
 
----- Original Message -----
From: bhaq1972
Sent: Wednesday, February 22, 2006 10:21 AM
Subject: [flexcoders] Re: problem with cell renderer in ComboBox

--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky"
<[EMAIL PROTECTED]> wrote:
>
> As far as I recall, dropdown object can be "dropped" and recreated
when the data model and other things change. If you do not reassign
cellrenderer at that time it will be gone. It would make sense to me
to subclass the object and override getDropdown function to assign
cellrenderer on each call or at least when dropdown was not defined
at the time of the call.
> Thank you,
> Anatole

i agree with you Anatole. infact this is what i'm doing for my
subclassed combobox(flex1.5). i override the getDropdown() method.
and instead of the dropdown being a List, it's a DataGrid (2
columns, no header). my use case for this kind of dropdown is i can
show more information to the user.

the only thing i don't like about this approach is its not supported.

regards
bod






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




Reply via email to