I am using a Radmenu. I like to hide a Submenu item.
The menu looks like following. Note that Car is the main Menu and Dodge, Toyota and Honda are submenus.
Cars - Dodge - Toyota - Honda
I am trying to do something like the following but won't work:
protected void RadMenu1_ItemCreated(object sender, Telerik.Web.UI.RadMenuEventArgs e)
{
if (e.Item is RadMenuItem)
{
if (e.Item.Parent != null && e.Item.Parent is RadMenuItem)
{
if (e.Item.Menu.FindItemByText("Honda"))
{
e.Item.Visible = false;
}
}
}
}
Please try with the below code snippet and let me know if any concern.
ASPX
ASPX.CS