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

Pre-select menu item on menu load

0 Answers 56 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Matteo
Top achievements
Rank 1
Matteo asked on 08 Nov 2012, 03:43 PM
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!

No answers yet. Maybe you can help?

Tags
Menu
Asked by
Matteo
Top achievements
Rank 1
Share this question
or