1 Reply Latest reply on Feb 17, 2009 8:27 AM by Newsgroup_User

    Tree ItemRenderer problem

    flexisgood
      I have a Tree ItemRenderer that works great.

      But when I change the dataprovider to the Tree control in runtime the itemRenderer doesnt work properly.
      I have to collapse and expand the groups on it to get the height right.

      And the controls I create in the createChildren function is not created for each tree node. Seems to create them a bit random.. I dont understand why...?
        • 1. Re: Tree ItemRenderer problem
          Level 7

          "flexisgood" <webforumsuser@macromedia.com> wrote in message
          news:gnek7j$f06$1@forums.macromedia.com...
          >I have a Tree ItemRenderer that works great.
          >
          > But when I change the dataprovider to the Tree control in runtime the
          > itemRenderer doesnt work properly.
          > I have to collapse and expand the groups on it to get the height right.
          >
          > And the controls I create in the createChildren function is not created
          > for
          > each tree node. Seems to create them a bit random.. I dont understand
          > why...?

          You do realize that createChildren only runs when your itemRenderer is first
          created and not when it is recycled, right?