select event of context menu

2 posts, 0 answers
  1. genericuser
    genericuser avatar
    3 posts
    Member since:
    May 2009

    Posted 24 May Link to this post

    Hi,

    I am using Aurelia with Kendo UI. I tried the context menu. I am having problems in calling a function from the select. It is unable to locate that method.

    $("#menu").kendoContextMenu({                
    orientation: orientation,                
    target: "#listview-context-menu",                
    filter: ".product",                
    animation: {                    
        open: { effects: "fadeIn" },                    
        duration: 500},                
    select: function (e) {
       this.doAction(); // this function is not being recognized. 
    }
    });

     

    Can you please help?

  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 26 May Link to this post

    Hello,

    I am unable to reproduce the mentioned behavior on our demos page. The select event is fired as expected. Keep in mind that the this reference will point to the widget itself when used inside event handlers.

    Regards,
    Dimiter Madjarov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top