ExpandAll button not firing on my treeview -HELP-

P

Patrick.O.Ige

Hi All,
No error but it doesn't work i mean the event doesn't fire arggg!!!
I have done everything i have included all the code to scan trough below!
Thx

My code below:-
Public Sub ExpandAll(ByVal sender As Object, ByVal e As System.EventArgs)
For i As Integer = 0 To tvFamilyTree.Nodes.Count - 1
tvFamilyTree.Nodes(i).Expanded = True
Next
End Sub

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
ExpandAll(Nothing, EventArgs.Empty)
End Sub


In ASp.NET
-------------
<asp:Button BorderColor=#009966 Runat=server
OnClick="ExpandAll"></asp:Button>

My TreeView:-
-----------------
<IE:TREEVIEW id="tvFamilyTree" runat="server"
SystemImagesPath="/webctrl_client/1_0/images/"
SHOWLINES="true" SHOWTOOLTIP="true"
DefaultStyle="font-family:arial;font-size:11px;color:#004080;border: solid
0px #004080; margin: 0px; background: #ffffff; white-space:
nowrap;cursor:default;"
HoverStyle="font-family:arial;font-weight:bold;font-size:11px;color:red;text-decoration:underline
red; margin: 0px; background:#ffffff; white-space: nowrap;
cursor:pointer;cursor:hand;"
BorderStyle="0" Showplus="true" Indent="5" ExpandedImageUrl="smallest.gif"
SelectExpands="true">

<ie:TreeNode TreeNodeSrc="MyXmlfile.xml" Text="<font size='4'>Call
Center</font>" Expanded="True" ID="Treenode1"
NavigateUrl="default.aspx"></ie:TreeNode>

</IE:TREEVIEW>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top