I advise starting with one of the existing item renderers. They are optimized for performance already. Using a container and or high level components is easy, but will have performance issues if you display a lot of data.
I recently modified ListItemRenderer.as to add some conditional controls. I found that adding the child components in the set data() or commitProperties() methods was slow, because these methods get called very often. I opted to create all the controls in createChildren(), then toggle the visibility, set the position and set the data in set data(). Tracy -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Monday, September 10, 2007 4:45 AM To: [email protected] Subject: Re: [flexcoders] making optional itemRenderers On Monday 10 Sep 2007, [EMAIL PROTECTED] wrote: > I have a datagrid which contains a itemRenderer that displays a drop > down list, now I'd like to conditionally display these drop down > lists, so they are not displayed in every row of the datagrid. I would do this within the itemRenderer itself - if it figures out it needs to not show the drop down, it can set the visible property. Obviously, make sure all that is triggered from your 'set data' method. -- Tom Chiverton Helping to greatly benchmark slick materials on: http://thefalken.livejournal.com **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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

