ExpandAll button not firing on my treeview -HELP-

Discussion in 'ASP .Net Web Controls' started by Patrick.O.Ige, Oct 19, 2004.

  1. 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>
    Patrick.O.Ige, Oct 19, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dotnet Gruven

    TreeView: OnSelectedNodeChanged not firing??

    Dotnet Gruven, Dec 16, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    10,065
    Haplo6767
    Sep 8, 2008
  2. Ray Booysen

    Treeview Populate event not firing

    Ray Booysen, May 8, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    413
    Ray Booysen
    May 8, 2006
  3. =?Utf-8?B?V29vZg==?=
    Replies:
    1
    Views:
    658
    =?Utf-8?B?V29vZg==?=
    Aug 23, 2006
  4. Patrick.O.Ige

    Error using ExpandALL / CollapseALL

    Patrick.O.Ige, Oct 18, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    121
    Patrick.O.Ige
    Oct 18, 2004
  5. sfarr

    Client side ExpandAll/CollapseAll

    sfarr, Mar 21, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    103
    sfarr
    Mar 21, 2005
Loading...

Share This Page