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

close event not working???

0 Answers 108 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Gaetano
Top achievements
Rank 1
Gaetano asked on 18 Feb 2013, 10:40 AM
Hi guys, 
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!  

No answers yet. Maybe you can help?

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