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

How to add new menu item in code behind

3 Answers 302 Views
Menu
This is a migrated thread and some comments may be shown as answers.
dinakaran g
Top achievements
Rank 1
dinakaran g asked on 06 Sep 2010, 05:43 AM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Konstantina
Telerik team
answered on 07 Sep 2010, 03:28 PM
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
0
Tim
Top achievements
Rank 1
answered on 26 Mar 2017, 01:33 AM

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.

0
Tim
Top achievements
Rank 1
answered on 26 Mar 2017, 02:18 AM
Please disregard my post, it is not applicable to the original question.
Tags
Menu
Asked by
dinakaran g
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Tim
Top achievements
Rank 1
Share this question
or