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

How can I associate a ContextMenu with a RadDataBoundListbox programmatically

1 Answer 84 Views
ContextMenu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pat
Top achievements
Rank 1
Pat asked on 13 Mar 2012, 05:11 PM
I want to be able ro associate a dynamically created ContextMenu with ListBox in C#. How can I do that?

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 15 Mar 2012, 09:51 AM
Hi Pat,

You can associate a RadContextMenu to an element programmatically just like you do in xaml. RadContextMenu has a ContextMenu attached property that can be read and written with the RadContextMenu.GetContextMenu() and RadContextMenu.SetContextMenu() static methods.

Please write again if you have other questions.

Kind regards,
Victor
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ContextMenu
Asked by
Pat
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or