ComponentOne Menu for ASP.NET Web Forms
Menu Creation / Dynamic Menu Creation
In This Topic
    Dynamic Menu Creation
    In This Topic

    Dynamic menus can be created on the server side or client side. When creating dynamic menus on the server side, use a constructor to dynamically create a new instance of theC1Menu Item class. For client-side, the CreateInstance constructor can be used to dynamically create a new instance of the C1Menu control. For example the follow script creates a new menu control on the client side:

    To write code in Source View

    aMenu = C1.Wijmo.Controls.C1Menu.createInstance ();
    document.body.appendChild(aMenu.element);