SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I create a collapsed Treeview on page load

    Hi, I'm working through 'Build Your Own ASP 2.0 Website' I'm using the Treeview example in the 'Advanced Controls' section of the book. I can get the Treeview to work without a problem, however, by default the Treeview displays in Expanded view when the page loads. I want the TreeView to be collapsed at page load and only show the RootNode with the Plus sign next ti it. How do I do it?

    Thanks

    Kevin.

  2. #2
    SitePoint Wizard
    Join Date
    Feb 2007
    Posts
    1,274
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    set the ExpandDepth to the number of levels you want expanded initially.

  3. #3
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, it seems so obvious now


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •