This is a migrated thread and some comments may be shown as answers.

Stop Node clicks

2 Answers 59 Views
SiteMap
This is a migrated thread and some comments may be shown as answers.
robin russell
Top achievements
Rank 2
robin russell asked on 11 Nov 2010, 05:11 PM
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?

2 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 16 Nov 2010, 05:05 PM
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.
0
Steve Gray
Top achievements
Rank 1
answered on 16 Aug 2011, 01:13 PM
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
Tags
SiteMap
Asked by
robin russell
Top achievements
Rank 2
Answers by
Veronica
Telerik team
Steve Gray
Top achievements
Rank 1
Share this question
or