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

Context menu with Angular.js

3 Answers 140 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 27 Jan 2015, 02:06 PM
Hi,

I have an application in angular.js and we're using kendo ui.  In my page (html) I have an image inside a div and I want to have a context menu associated to this image.  But I don't want the context-menu to open on the left click.  My goal is to have this menu open when the user click this image, I added the context-menu inside my page but I cannot find it inside the scope to call the open method.

Someone have an example how to achieves this ?

Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Nikolov
Telerik team
answered on 29 Jan 2015, 08:49 AM

Hello Gary,

You can just change the openOn property. Otherwise you can get a reference of the widget by its name. Here is an example:

http://dojo.telerik.com/@Kiril/UFEWa

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Gary
Top achievements
Rank 1
answered on 29 Jan 2015, 01:21 PM
Perfect, thanks
0
Accepted
Kiril Nikolov
Telerik team
answered on 30 Jan 2015, 07:30 AM

Hello Gary,

 

Glad I helped.

 

In case you have any further questions, please do not hesitate to ask.

 

Regards,
Kiril Nikolov
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
Gary
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Gary
Top achievements
Rank 1
Share this question
or