Controlling the TreeView

Discussion in 'ASP .Net' started by Tor Inge Rislaa, Feb 4, 2007.

  1. Controlling the TreeView

    I have the sitemap below as source for my TreeView control. When I open my
    application I want only the nodes Home, About, Products and Contact to show.
    The child nodes of Products (Product1 and Product1) should reveal when the
    user click on the title Products.


    <?xml version="1.0" encoding="utf-8" ?>
    <siteMap>
    <siteMapNode title="Home" url="Default.aspx">
    <siteMapNode title="About" url="About.aspx" />
    <siteMapNode title="Products" url="Products.aspx">
    <siteMapNode title="Product1" url="Product1.aspx" />
    <siteMapNode title="Product2" url="Product2.aspx" />
    </siteMapNode>
    <siteMapNode title="Contact" url="Contact.aspx" />
    </siteMapNode>
    </siteMap>

    - The first question is therefore how to control the what is visible at
    startup
    - Next how to control the reveal of child nodes by clicking on the title (I
    don't want to use a expand or collapse icon)
    - Is it also possible to automatically collapse the node Products when the
    user click on one of the other Parent nodes Home, About, or Contact

    (LanguageVB, ASP.NET 2.0)

    TIRislaa
     
    Tor Inge Rislaa, Feb 4, 2007
    #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. =?Utf-8?B?VHltYm93?=
    Replies:
    2
    Views:
    24,606
    =?Utf-8?B?VHltYm93?=
    Jan 10, 2006
  2. Tor Inge Rislaa

    Controlling TreeView Expand/Collapse

    Tor Inge Rislaa, Feb 21, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    603
    Tor Inge Rislaa
    Feb 21, 2007
  3. Tor Inge Rislaa

    Controlling the font of a treeview node

    Tor Inge Rislaa, Apr 9, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    296
    Tor Inge Rislaa
    Apr 9, 2007
  4. abargaddon
    Replies:
    0
    Views:
    1,097
    abargaddon
    Jan 17, 2008
  5. Per Salmi

    TreeView not rendering nodes? Cacheing of a TreeView

    Per Salmi, Oct 15, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    502
    Steve Drake
    Oct 15, 2003
Loading...

Share This Page