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

How to bind command with radmenu when using "Binding to Dynamic Data"

1 Answer 121 Views
Menu
This is a migrated thread and some comments may be shown as answers.
ajoua taha
Top achievements
Rank 1
ajoua taha asked on 29 Mar 2016, 05:46 PM

Hi,

I followed this  link (http://docs.telerik.com/devtools/wpf/controls/radmenu/populating-with-data/binding-to-dynamic-data.html#binding-to-dynamic-data) from telerik documentation to build radmenu, but I don't know how to  add the command  for each item.

help plz

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 30 Mar 2016, 10:52 AM
Hello,

I would suggest that you use ItemClick event of RadMenu as it is fired every time an item is clicked. You can check RadMenu Events topic for more details on its usage.

Additionally, you could take a look at our EventToCommandBehavior which will allow you to handle the ItemClick event in the ViewModel.

I hope this will be helpful.

Regards,
Yana
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
Menu
Asked by
ajoua taha
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or