D
Dgorf
Hey,
I had some problems when tring 2 expand a treeViwe's node from
javascript.
B4 i change the selectedNodeIndex
document.all("TreeView1").selectedNodeIndex = ar.getNodeIndex();
I want 2 expand the current node (if the nodde is not expanded ,
selectedNodeIndex will become "0"),
but it seems that my code is not working (I'm calling
expandCurrentLevel b4 changing selectedNodeIndex )
function expandCurrentLevel()
{
var myNode = TreeView1.getTreeNode(TreeView1.selectedNodeIndex);
myNode.Expanded = true;
TreeView1.ExpandLevel+=1;
}
10x in advane
Dgorf,
..Net programmer
I had some problems when tring 2 expand a treeViwe's node from
javascript.
B4 i change the selectedNodeIndex
document.all("TreeView1").selectedNodeIndex = ar.getNodeIndex();
I want 2 expand the current node (if the nodde is not expanded ,
selectedNodeIndex will become "0"),
but it seems that my code is not working (I'm calling
expandCurrentLevel b4 changing selectedNodeIndex )
function expandCurrentLevel()
{
var myNode = TreeView1.getTreeNode(TreeView1.selectedNodeIndex);
myNode.Expanded = true;
TreeView1.ExpandLevel+=1;
}
10x in advane
Dgorf,
..Net programmer