close event not working???

1 posts, 0 answers
  1. Alberto
    Alberto avatar
    71 posts
    Member since:
    May 2012

    Posted 18 Feb 2013 Link to this post

    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() {

    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? 

    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...)
Back to Top