4 Replies Latest reply on Nov 4, 2010 8:18 AM by Devtron

    tree - selecting and expanding root node

    toft Level 1

      I want to have a tree root node expanded at start.

       

      I have tried:


      tree.selectedIndex = 0;


      if (tree.selectedItem && tree.dataDescriptor.isBranch(tree.selectedItem))

      {

           tree.expandChildrenOf(tree.selectedItem, true);

      }


      ...but it doesnt work.

       

      Anyone ...?