Stop Node clicks

3 posts, 0 answers
  1. robin russell
    robin russell avatar
    3 posts
    Member since:
    Feb 2010

    Posted 11 Nov 2010 Link to this post

    I am using the sitemap and the top level items in my map do not have URL's. can i stop them being selectable?
  2. Veronica
    Veronica avatar
    1213 posts

    Posted 16 Nov 2010 Link to this post

    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.

    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.
  3. DevCraft R3 2016 release webinar banner
  4. steve gray
    steve gray avatar
    14 posts
    Member since:
    Mar 2006

    Posted 16 Aug 2011 Link to this post

    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
Back to Top