Hi guys,
I'm trying to implement a kendo menu with an handler for close event.
here is my code:
It's pretty much the same code from the demo but I never get the alert win to shows up...
I tried some alternative like put the handler inside the Init method, or to put the alert directly inside .kendoMenu({...})..
nothing happened..
What am I doing wrong?
thanks
Fabio
EDIT: ok I figured out..
In the code there was another declaration of the same kendoMenu the probably overwrote the one in which i put the handler.
(I'm doing some maintenance to someone else code...)
Sorry!
I'm trying to implement a kendo menu with an handler for close event.
here is my code:
var
MyNamespace = {
Init:
function
() {
var
menu = $(
"#userMenu"
).kendoMenu({ close: MyNamespace.OnClose }).data(
"kendoMenu"
);
....
},
OnClose:
function
() {
alert(
"closed"
);
}
}
It's pretty much the same code from the demo but I never get the alert win to shows up...
I tried some alternative like put the handler inside the Init method, or to put the alert directly inside .kendoMenu({...})..
nothing happened..
What am I doing wrong?
thanks
Fabio
EDIT: ok I figured out..
In the code there was another declaration of the same kendoMenu the probably overwrote the one in which i put the handler.
(I'm doing some maintenance to someone else code...)
Sorry!