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

Select RadMenuItem from MasterPage on PageLoad

1 Answer 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 30 Jul 2015, 11:46 PM

What i need to happen is that after a user logs in and the page goes to Home.aspx, I need the Home RadMenuItem to be selected on page load.  When they click About it will go to About.aspx page and select the About RadMenuItem on page load.  Please advice

MasterPage.master:  <telerik:RadMenu runat="server" ID="mnuTopBar" EnableEmbeddedSkins="false" Width="800px"></telerik:RadMenu>

 On Home.aspx:  

 

Private Sub SelectMenu()
        Dim menu As New RadMenu
        Dim currItem As New RadMenuItem
        menu = DirectCast(Me.Page.Master.FindControl("mnuTopBar"), RadMenu)
 currItem = menu.FindItemByText("Home")
    End Sub

Above is all i have so far.  I have tried currItem = menu.FindItemByText("Home") but getting nothing on currItem.  Please advice...

1 Answer, 1 is accepted

Sort by
0
Joseph
Top achievements
Rank 1
answered on 31 Jul 2015, 04:14 PM
Never mind i figured it out.
Tags
General Discussions
Asked by
Joseph
Top achievements
Rank 1
Answers by
Joseph
Top achievements
Rank 1
Share this question
or