Welcome to the pain... shot of morphine? Matt had an old email that did it like this: <mx:ComboBox dataProvider="{sizes.size}" creationComplete="event.target.getDropdown().cellRenderer = sizeRenderer; event.target.getDropdown().variableRowHeight=true" />
I did the same thing, only used the open event since then you're ensured the list is actually created, and you only set it once. ----- Original Message ----- From: "Simeon Bateman" <[EMAIL PROTECTED]> To: <flexcoders@yahoogroups.com> Sent: Wednesday, January 18, 2006 5:20 PM Subject: [flexcoders] CellRenderer For ComboBox Ok, i have been beating my head against this one for a bit now. i would like to display a list of checkboxes in a combo box. The combobox exposes the list it uses internally through the dropdown property. I have tried setting the cellrenderer on that at several points during initaliziation but not having any luck in making it work. My cellrenderer works fine when applied to a mx:List component directly. I have now created a subclass of the combobox and i am over-riding the getDropdown and displayDropdown methods trying to set the cellRenderer on the build in __dropdown object, before calling the super objects methods. Does any body have any pointers as to where i am going wrong? I would be happy to share the code i have started, and will blog the solution for all once i make it work. TIA simeon -- 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/