Pre-select menu item on menu load

1 posts, 0 answers
  1. Matteo
    Matteo avatar
    6 posts
    Member since:
    Apr 2012

    Posted 08 Nov 2012 Link to this post

    Hello,
    is there a way to programmatically select a menu item on menu load?
    I mean something like that: after the kendoMenu has been initialized I would like to invoke the "select" event on an item.
    Is it possible?

    I am using a custom function:

    navigationMenu_selectItem("myPage");

    function navigationMenu_selectItem(id) {
    $("#navigationMenu").find("#" + id).addClass("k-state-selected");
    $("#contentPane").load("pages/" + id);
    }

    Is there a better/simpler way?
    Thank you!
Back to Top