Open menu item when page loads

3 posts, 1 answers
  1. Matt
    Matt avatar
    33 posts
    Member since:
    Nov 2010

    Posted 20 Jan 2011 Link to this post

    Hello,

    Using the RadMenu client-side API (http://demos.telerik.com/aspnet-ajax/menu/examples/programming/clientsideapi/defaultcs.aspx) is it possible to open a RadMenuItem when a page loads?

    Thanks,

    Matt
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 21 Jan 2011 Link to this post

    Hello,


    You can add the code for opening RadMenuItem in client side pageLoad() event.

    Client code:
       function pageLoad() {
        var item = menu.findItemByText("text");
         
        if (item)
        {
            item.open();
        }
    }



    -Shinu.
  3. Matt
    Matt avatar
    33 posts
    Member since:
    Nov 2010

    Posted 21 Jan 2011 Link to this post

    Thanks Shinu. I didn't know about the pageLoad() event.

    Matt
Back to Top