RadMenu Hide Top level Menu Items code behind

742 Views Asked by At

I have a top level menu item with no submenu items that I like to hide in the code behind.

On Page_Load, I have the following but does not seem to hide the menu item

RadMenu1.FindItemByText("UserPage").Remove();
1

There are 1 best solutions below

0
AxleWack On BEST ANSWER

I know my post is a little late, but perhaps this can help others.

Dim Raditem As RadMenuItem = RadMenu1.FindItemByText("UserPage")
If Not Raditem Is Nothing Then
    Raditem.Visible = False
End If