Tabs RRS feed

  • Question

  • User209709384 posted

    How do I get the Tabs to change when there are Child Nodes. So for example, if the parent node does not have any child nodes the tab changes to a gray color(image), but if the parent node has child nodes underneath the parent tab is not changing to the gray color(image). Anyone know how I can resolve this issue?


    Wednesday, January 25, 2006 2:31 PM

All replies

  • User209709384 posted

    I finally got around to working on this again. For those of you who may be having the same problem the following will work in the Menu PreRender:

    Protected Sub MainMenu_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles MainMenu.PreRender

    Dim node As SiteMapNode = SiteMap.CurrentNode

    If Not node.ParentNode.Equals(node.RootNode) And node.ParentNode IsNot Nothing Then

    For Each item As MenuItem In MainMenu.Items

    If item.DataPath = node.ParentNode.Key Then

    item.Enabled = True

    item.Selectable = True

    item.Selected = True

    End If


    End If

    End Sub

    Thursday, February 23, 2006 3:47 PM
  • User753645743 posted

    Thanks Justin that works great!


    Tuesday, October 24, 2006 12:11 PM
  • User555306248 posted
    Nice [:)]
    Saturday, April 28, 2007 12:09 AM