There is an event handler collapse but i couldn't find a collapse or expand
method
for example for a treeview object like :
<iewc:TreeVie w id="MenuTree" runat="server"
onselectedindex changed="MenuTr eeSelectChanged ">
<iewc:TreeNod e Text="A"></iewc:TreeNode>
<iewc:TreeNod e Text="B">
<iewc:TreeNod e Text="B1"></iewc:TreeNode>
<iewc:TreeNod e Text="B2"></iewc:TreeNode>
<iewc:TreeNod e Text="B3"></iewc:TreeNode>
<iewc:TreeNod e Text="B4"></iewc:TreeNode>
</iewc:TreeNode>
<iewc:TreeNod e Text="C">
<iewc:TreeNod e Text="C1"></iewc:TreeNode>
<iewc:TreeNod e Text="C2"></iewc:TreeNode>
<iewc:TreeNod e Text="C3"></iewc:TreeNode>
</iewc:TreeNode>
</iewc:TreeView>
what should i use in
public void MenuTreeSelectC hanged(Object sender, TreeViewSelectE ventArgs e)
{
}
i want only the the "e.NewNode" to be expanded and collapse the "e.OldNode"
thanks for your help.
"Alvin Bruney" <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote in
message news:OF******** *****@tk2msftng p13.phx.gbl...
each node contains a collapse property have a look at your object browser
"Gönen EREN" <ge***@gsu.edu. tr> wrote in message
news:OR******** ******@TK2MSFTN GP10.phx.gbl... how can i collapse or expand a node of treeview control programmaticly?
thanks.