How to put Expand all and Collapse all button for a asp.net TreeView Control ?

Discussion in 'ASP .Net' started by vivek, Feb 24, 2006.

  1. vivek

    vivek Guest

    Well I have been using the new Microsoft asp.net 2.0 TreeView Control
    in my application. I need to provide some kind of "Expand All" and
    "Collapse All" button. This button should not post the form back to the
    server but should work by Javascript only. Any suggestion is welcome.

    Thanks

    Vivek N
     
    vivek, Feb 24, 2006
    #1
    1. Advertising

  2. vivek

    David Barkol Guest

    Try this:

    TreeView_ToggleNode(ctl00_MainContent_TreeView1_Data,0,ctl00_MainContent_TreeView1n0,'-',ctl00_MainContent_TreeView1n0Nodes);

    David Barkol
    www.neudesic.com
     
    David Barkol, Feb 24, 2006
    #2
    1. Advertising

  3. vivek

    pushp

    Joined:
    Jun 14, 2007
    Messages:
    1
    Client Side Expand/Collapse All Nodes For ASP.NET 2.0 Treeview

    check my blog entry here: http://pushpontech.blogspot.com/2007/06/client-side-expandcollapse-all-nodes.html

    Hope this helps.
    pushp
    http://pushpontech.blogspot.com/
     
    pushp, Jun 14, 2007
    #3
    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. Gönen EREN
    Replies:
    4
    Views:
    4,114
    Gönen EREN
    Aug 16, 2003
  2. sekhar2cool
    Replies:
    0
    Views:
    784
    sekhar2cool
    Apr 14, 2008
  3. Reeya

    Treeview Control Expand Collapse

    Reeya, Jan 31, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    326
    Reeya
    Jan 31, 2005
  4. Replies:
    0
    Views:
    172
  5. M.L.
    Replies:
    9
    Views:
    319
Loading...

Share This Page