0 Replies Latest reply on Jan 9, 2008 12:31 PM by 2JZ

    Expanding sub leaf in tree control

      Hi all,

      I posted this message yesterday and it disappeared somehow. I just want to know how to expand a sub leaf and highlight one of its item. For example, how do I expand the "Photos" leaf and highlight the "Photo2" for the XML below.

      <?xml version="1.0" encoding="utf-8"?>
      <folder label="Home Page">
      <folder label="Slide Show"/>
      <folder label="Other Folder">
      <folder label="Photos">
      <photo item="Photo1"/>
      <photo item="Photo2"/>
      <photo item="Photo3"/>

      I can use the following command to expand the "Other folder" leaf.
      TreeCtrl.expandItem(TreeXMLList.getItemAt(1), true);

      What should I do next?