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

select event of context menu

1 Answer 340 Views
Menu
This is a migrated thread and some comments may be shown as answers.
genericuser
Top achievements
Rank 1
genericuser asked on 24 May 2016, 09:13 PM

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?

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 26 May 2016, 08:15 AM

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!
 
Tags
Menu
Asked by
genericuser
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or