Hello Quade,
You said you have the following SiteMap structure:
home
services
----service1
----------Item1
----------Item2
----service2
contact us
To remove "Item1" and "Item2" from the navigation control, you need to implement the following in the RadMenu1_ItemDataBound method of the SiteMenu control:
| public void RadMenu1_ItemDataBound(object sender, RadMenuEventArgs e) |
| { |
| if (e.Item.Level >= 1) |
| { |
| e.Item.Visible = false; |
| e.Item.Owner.Items.Clear(); |
| } |
| ... |
Please note that the check for the Level of the current item should be different depending on the position of the page in the SiteMap.
If this does not help, send us both your project and database to debug the issue locally.
Best wishes,
Pepi
the Telerik team