I tried this, but i cant expand and collapse nodes. There are no possibility to do this. I have extended Box and implements IDropInListItemRenderer. I tried also to extend TreeItemRenderer and add some child on set data depending the depth of the node, but no child appear, only folder icon and label. I want to say that dataProvider for the Tree is an array of objects, objects that have a property children array of other objects.
Mihai --- In flexcoders@yahoogroups.com, Alex Harui <aha...@...> wrote: > > It would probably be easier to have a single renderer that can display > differently. If it implements IDropInListItemRenderer you can access > listData.depth to know the depth of the node. > > Alex Harui > Flex SDK Developer > Adobe Systems Inc.<http://www.adobe.com/> > Blog: http://blogs.adobe.com/aharui > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of Mihai C > Sent: Thursday, October 08, 2009 8:08 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Tree component > > > > Hi! > > Is there a way to create different ItemRenderers for each level from a Tree? > > Mihai >