2 Replies Latest reply on Mar 6, 2009 2:03 PM by OracleDan

    Expand all on tree when dataprovider is an object.

    OracleDan
      When I first start the application I would like to have the tree and all nodes fully expanded. My RemoteService returns an object that looks like the snippet below.

      I have seen a lot of code on how to expand all nodes of a tree, but I do not have a tree.selectedItem yet as I have just created the app. I would like to add an expand all to the creationComplete on the tree but I an not sure what to pass the tree.expandItem. I have tried to pass tree.firstVisibleItem. I have tried to iterate over the children of the root object of my dataprovider. I can do it with xml but can't seem to figure it out using an object. Any ideas?