Select RadMenuItem from MasterPage on PageLoad

2 posts, 0 answers
  1. Joseph
    Joseph avatar
    29 posts
    Member since:
    Jun 2014

    Posted 30 Jul 2015 Link to this post

    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...

  2. Joseph
    Joseph avatar
    29 posts
    Member since:
    Jun 2014

    Posted 31 Jul 2015 Link to this post

    Never mind i figured it out.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top