need to create dynamic kendo menu.

5 posts, 0 answers
  1. CW
    CW avatar
    12 posts
    Member since:
    Nov 2012

    Posted 27 Nov 2012 Link to this post

    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..?    
  2. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 28 Nov 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. CW
    CW avatar
    12 posts
    Member since:
    Nov 2012

    Posted 28 Nov 2012 Link to this post

    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. 
  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 29 Nov 2012 Link to this post

    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!
  6. Sanjay
    Sanjay avatar
    1 posts
    Member since:
    Nov 2010

    Posted 26 Mar 2013 Link to this post

    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
Back to Top
Kendo UI is VS 2017 Ready