Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > SiteMap > Stop Node clicks

Not answered Stop Node clicks

Feed from this thread
  • robin russell avatar

    Posted on Nov 11, 2010 (permalink)

    I am using the sitemap and the top level items in my web.site map do not have URL's. can i stop them being selectable?

    Reply

  • Veronica Veronica admin's avatar

    Posted on Nov 16, 2010 (permalink)

    Hello robin russell,

    To be able to remove the ability to select the parent node - you need to use Templates. Please take a look at this demo for "Customizing Appearance" and this demo for "Templates".

    Hope this helps.

    Greetings,
    Veronica Milcheva
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

    Reply

  • steve gray avatar

    Posted on Aug 16, 2011 (permalink)

    Here's a better way:
    On the server side, I check the NavigateUrl and disable the node if it's empty
    Private Sub SiteMap1_NodeDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadSiteMapNodeEventArgs) Handles SiteMap1.NodeDataBound
        Dim n As RadSiteMapNode = e.Node
        If n.NavigateUrl = "" Then
            n.Enabled = False
        End If
    End Sub

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > SiteMap > Stop Node clicks