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

need to create dynamic kendo menu.

4 Answers 486 Views
Menu
This is a migrated thread and some comments may be shown as answers.
CW
Top achievements
Rank 1
CW asked on 28 Nov 2012, 05:48 AM
i just need to make kendo menu with data source(json). but currently impossible. so i tried to create html list dynamically and bind the data set (ul ID="menu")  and  call from kendomenu function. html list added to page correctly  but  menu not populate. have any idea..?    

4 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 28 Nov 2012, 10:06 AM
Hi Chathuranga,

We will need some sample code in order to reproduce your issue and help you fix it.

Please note, that while you can't init the Kendo Menu from a DataSource, you can still use a JSON object to initialize it.

Kind regards,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
CW
Top achievements
Rank 1
answered on 29 Nov 2012, 03:15 AM
thanks kamen.
i have done with dynamic list. but if i use jason object is it should be static?.. normally we can call api as data source for the some controls (eg: list view, charts) but not the menu. 
0
Atanas Korchev
Telerik team
answered on 29 Nov 2012, 07:18 AM
Hello,

 As we told you before the Menu does not support data binding. You can use its API for adding items, or create it from a JavaScript array of object.

Greetings,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sanjay
Top achievements
Rank 1
answered on 27 Mar 2013, 12:57 AM
I solved this way 

http://stackoverflow.com/questions/8433140/is-there-a-javascript-menubar-widget-that-allows-menu-items-to-be-added-and-remo/15650170#15650170
Tags
Menu
Asked by
CW
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
CW
Top achievements
Rank 1
Atanas Korchev
Telerik team
Sanjay
Top achievements
Rank 1
Share this question
or