How to add new menu item in code behind

4 posts, 1 answers
  1. dinakaran g
    dinakaran g avatar
    6 posts
    Member since:
    Feb 2010

    Posted 06 Sep 2010 Link to this post

    Hi All

      I am Using Rad Menu. Basically i am created 3 menu items like File View and Users
    where as User menu item i have binded submenu from database. how to add click event for that submenus.
    how can acheive that .
    Thanks
    G Dinakaran
  2. Answer
    Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 07 Sep 2010 Link to this post

    Hello,

    Thank you for contacting us.

    You can refer to the following help articles, in which is explained how to add dynamically items and how to use the click events, or how to add a command to the item:

    Hope this helps. If you need further assistance please let us know.

    Kind regards,
    Konstantina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Tim
    Tim avatar
    6 posts
    Member since:
    Oct 2016

    Posted 25 Mar in reply to Konstantina Link to this post

    I tried using the example from the http://www.telerik.com/help/wpf/radmenu-populating-with-data-binding-to-dynamic-data.html

    and I'm getting an ambiguity problem between the class MenuItem, and System.Windows.Controls.MenuItem.

     

    I've tried a couple other options, but I have started getting a casting missmatch (can't cast string as type MenuItem). Everything i can find other than the article is several years old. I know this is easier than I'm making it, and I'm missing something, but help would be appreciated.

  4. Tim
    Tim avatar
    6 posts
    Member since:
    Oct 2016

    Posted 25 Mar in reply to Tim Link to this post

    Please disregard my post, it is not applicable to the original question.
Back to Top