TreeView - disabling hyperlink on the leaf node

Discussion in 'ASP .Net' started by mazdotnet, Aug 1, 2006.

  1. mazdotnet

    mazdotnet Guest

    Hi,

    I'm using the asp:TreeView component of asp.net 2.0 and my tree is
    structure is

    Root
    -- Parent 1
    --------- Leaf 1
    --------- Leaf 2

    However, Leaf 1 and Leaf 2 both appear to be as hyperlinks (fire an
    event). How can I disable the hyperlink property of Leaf 1 and Leaf 2
    so that it only displays text?

    Thanks
    Maz.
     
    mazdotnet, Aug 1, 2006
    #1
    1. Advertising

  2. mazdotnet

    mazdotnet Guest

    I got it.

    It's
    childNode.SelectAction = TreeNodeSelectAction.None;

    mazdotnet wrote:
    > Hi,
    >
    > I'm using the asp:TreeView component of asp.net 2.0 and my tree is
    > structure is
    >
    > Root
    > -- Parent 1
    > --------- Leaf 1
    > --------- Leaf 2
    >
    > However, Leaf 1 and Leaf 2 both appear to be as hyperlinks (fire an
    > event). How can I disable the hyperlink property of Leaf 1 and Leaf 2
    > so that it only displays text?
    >
    > Thanks
    > Maz.
     
    mazdotnet, Aug 1, 2006
    #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. Replies:
    0
    Views:
    1,620
  2. Alexandre Jaquet

    [JTree] Adding a leaf to a node

    Alexandre Jaquet, Nov 8, 2003, in forum: Java
    Replies:
    0
    Views:
    626
    Alexandre Jaquet
    Nov 8, 2003
  3. William Main

    Fixed bug in IE Treeview Webcontrol when clicking on leaf node.

    William Main, Feb 1, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    283
    William Main
    Feb 1, 2005
  4. Bret

    Force postback from Treeview leaf node

    Bret, Jun 15, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    393
  5. Replies:
    0
    Views:
    397
Loading...

Share This Page