网页源码:<tvns:treeview id="TreeView1" onselectedindexchange="TVIndexChanged();" onclick="TVIndexChanged();" onexpand="TVNodeExpand();" oncollapse="TVNodeCollapse();" ondblclick="TVDoubleClick();" oncontextmenu="TVRightClick();" onhover="starthover();" selectedNodeIndex="0" HelperID="__TreeView1_State__" systemImagesPath="/webctrl_client/1_0/treeimages/" selectExpands="true" autoSelect="true" onexpand="javascript: if (this.clickedNodeIndex != null) this.queueEvent('onexpand', this.clickedNodeIndex)" oncollapse="javascript: if (this.clickedNodeIndex != null) this.queueEvent('oncollapse', this.clickedNodeIndex)" oncheck="javascript: if (this.clickedNodeIndex != null) this.queueEvent('oncheck', this.clickedNodeIndex)" onselectedindexchange="javascript: if (event.oldTreeNodeIndex != event.newTreeNodeIndex) this.queueEvent('onselectedindexchange', event.oldTreeNodeIndex + ',' + event.newTreeNodeIndex)" onfirequeuedevents="javascript: window.setTimeout('__doPostBack(\'TreeView1\',\'\')', 0, 'JavaScript')" style="font-family:宋体;font-size:X-Small;">
<tvns:treenodetype Type="root">
</tvns:treenodetype><tvns:treenodetype Type="folder">
</tvns:treenodetype><tvns:treenode Type="root" Expanded="True" Selected="true" NodeData="ToolTip=$ASSET;nodeLevel=0">
总公司<tvns:treenode Type="folder" NodeData="ToolTip=DLSH;nodeLevel=1">
分公司<tvns:treenode Type="folder" NodeData="ToolTip=DLSH_SCXQ;nodeLevel=2">
部门<tvns:treenode Type="folder" NodeData="ToolTip=CDU3;nodeLevel=3">
部门1
</tvns:treenode><tvns:treenode Type="folder" NodeData="ToolTip=VDU3;nodeLevel=3">
部门2
</tvns:treenode><tvns:treenode Type="folder" NodeData="ToolTip=NHU;nodeLevel=3">
部门3
</tvns:treenode>
</tvns:treenode>
</tvns:treenode>
</tvns:treenode>
</tvns:treeview></DIV>
用什么方法展开这个树型列表,打开“部门1”,谢谢。 |