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

How to add 'Menu' next to title of 'Window' Component

1 Answer 23 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Chetan
Top achievements
Rank 1
Chetan asked on 19 Sep 2012, 10:15 AM
 How to add 'Menu' next to title of 'Window' Component or on hover of custiom icon how to populate a menu with 4 items

Thanks,
Chetan 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 21 Sep 2012, 02:05 PM
Hello Chetan,

The only way to add a Menu widget to the Window titlebar is to append the Menu's <ul> element via Javascript after the Window is initialized, and then create a Menu widget instance.

$("#window").prev().append("<ul id='menu'><li>item 1<ul><li>subitem 1</li></ul></li></ul>");
$("#menu").kendoMenu();

You will also need some custom styles:

.k-window-title{display:inline;position:static;}
.k-window .k-menu{display:inline-block;}


Regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Menu
Asked by
Chetan
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or