比较麻烦,用javascript可以,还要改treeView的.htc文件,很麻烦。

解决方案 »

  1.   

    遍历 var AllRootNode=new Array();
    AllRootNode=TreeView1.getChildren();
    AlertNode(AllRootNode); function AlertNode(NodeArray)
    {
    if(parseInt(NodeArray.length)==0)
    return;
    else
    {
    for(i=0;i<NodeArray.length;i++)
    {
    var cNode;
    cNode=NodeArray[i];
    alert(cNode.getAttribute("Text"));
    if(parseInt(cNode.getChildren().length)!=0)
    AlertNode(cNode.getChildren());
    }
    }
    }
      

  2.   

    不知道你的TreeView怎么加上去TextBox的
    是修改treeview.htc还是Node.Text="<input>"?
      

  3.   

    不知道你的TreeView怎么加上去TextBox的
    是修改treeview.htc还是Node.Text="<input>"?这有区别吗?