Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mike on Nov 07, 2009 06:04
open dhtmlx forum
Initilizing from HTML(Default: open son nodes)

Hi,I am from china.
when I initilizing from HTML, I find root node hide all son nodes. but I want to open son nodes default.
How can I solve this problem?
besides, can I name root node as null value, That is, I don't see root name in screen( JSP )
Answer posted by Alex (support) on Nov 09, 2009 06:11

Hello, 

you can pen item by openItem method:

<div id="listBox" ....>
   <ul>
      <li id="parentId">Root
          ...
      </li>
    </ul>
</div>

var tree = dhtmlXTreeFromHTML("parentId");
tree.openItem(rootId)