TreeView root node image

Discussion in 'ASP .Net' started by hchintapalli@partners.org, Sep 28, 2007.

  1. Guest

    Hi,

    How can I make root node of a TreeView control to have different
    expanded and collapsed images from the rest of the tree? If I use
    "ExpandImageUrl" and "CollapseImageUrl" it applies to all nodes
    including the root. And if I use "RootNodeStyle-ImageUrl" the image
    stays the same even if expand or collapse the root node.

    Appreciate your help. Thanks,
    Harish.
     
    , Sep 28, 2007
    #1
    1. Advertising

  2. On Sep 28, 10:03 pm, wrote:
    > Hi,
    >
    > How can I make root node of a TreeView control to have different
    > expanded and collapsed images from the rest of the tree? If I use
    > "ExpandImageUrl" and "CollapseImageUrl" it applies to all nodes
    > including the root. And if I use "RootNodeStyle-ImageUrl" the image
    > stays the same even if expand or collapse the root node.
    >
    > Appreciate your help. Thanks,
    > Harish.


    Use RootNodeStyle
    http://dotnetjunkies.com/QuickStartv20/aspnet/doc/ctrlref/navigation/treeview.aspx
     
    Alexey Smirnov, Sep 29, 2007
    #2
    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. wolf
    Replies:
    0
    Views:
    575
  2. Replies:
    0
    Views:
    1,648
  3. Tjerk Wolterink
    Replies:
    2
    Views:
    1,505
    Dimitre Novatchev
    Aug 24, 2006
  4. Replies:
    1
    Views:
    586
    Martin Honnen
    May 8, 2007
  5. Keith Patrick

    Hiding a TreeView's root node

    Keith Patrick, Nov 11, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    541
    Keith Patrick
    Nov 16, 2005
Loading...

Share This Page