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

Template for ContextMenu AngularJs

1 Answer 104 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jakub
Top achievements
Rank 1
Jakub asked on 02 Jun 2016, 12:32 PM

Hello,

Is it possible to have a customize template of subMenu in ContextMenu using AngularJs?

1 Answer, 1 is accepted

Sort by
0
Accepted
Alex Hajigeorgieva
Telerik team
answered on 06 Jun 2016, 01:20 PM

Hello Jakub,

The Kendo UI Menu and ContextMenu can accommodate custom content if it is defined as a sub-group, as shown in the following example:

http://demos.telerik.com/kendo-ui/menu/index

(check the "Stores" item).

I am afraid there is no built-in way to define templates.

Another good resource is the below AngularJS demo with the Kendo UI ContextMenu:

http://demos.telerik.com/kendo-ui/menu/context-menu-angular

There is a way of using the DataSource to achieve custom appearance per item with CSS classes, that might be suitable in your case:

http://docs.telerik.com/kendo-ui/api/javascript/ui/contextmenu#configuration-dataSource

Let me know if you need more help with the Kendo UI ContextMenu.

Kind Regards,

Alex

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
Jakub
Top achievements
Rank 1
Answers by
Alex Hajigeorgieva
Telerik team
Share this question
or