TreeView - disabling hyperlink on the leaf node

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mazdotnet

    TreeView - disabling hyperlink on the leaf node

    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

    #2
    Re: TreeView - disabling hyperlink on the leaf node

    I got it.

    It's
    childNode.Selec tAction = TreeNodeSelectA ction.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.

    Comment

    Working...