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

Basic context menu how-to?

3 Answers 204 Views
ContextMenu
This is a migrated thread and some comments may be shown as answers.
gdijim
Top achievements
Rank 1
gdijim asked on 23 Jun 2007, 07:17 AM
I've been using the control suite awhile and it's great -

I was looking through the how-to's and was wondering if there is one on how to create and use a basic Radmenu context menu?

The traditional menustripname.show() command doesn't work with the menu's I create, so I'm probably doing something wrong.

Thanks!

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 25 Jun 2007, 10:45 AM
Hi Jim,

To create a context menu use the RadDropDownMenu. You can just drop a RadDropDownMenu from the toolbox to the design surface or create it trough code. To show the context menu trough API use this code:

RadDropDownMenu menu = new RadDropDownMenu();

menu.Items.Add(new RadMenuItem("Item 1"));
menu.Items.Add(new RadMenuItem("Item 2"));
menu.Items.Add(new RadMenuItem("Item 3"));

menu.Show(Control.MousePosition);

 
Sincerely yours,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
gdijim
Top achievements
Rank 1
answered on 25 Jun 2007, 03:29 PM
Thanks a lot!!!

Just adding these context menus will make the application pop even more than the other Telerik controls I've got.  Thanks so much for your time!!  I'll let you know how I fare.

Jim

Edit - The thing I was missing was I was trying to use the RadMenu bar instead of the RadDropDownMenu.  Talk about missing the forest for the trees!  Thanks a lot!
0
Vassil Petev
Telerik team
answered on 25 Jun 2007, 04:59 PM
You are welcome, gdijim, I am glad to have been of help.

Let us know if you have other questions.
 

Kind regards,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ContextMenu
Asked by
gdijim
Top achievements
Rank 1
Answers by
Jack
Telerik team
gdijim
Top achievements
Rank 1
Vassil Petev
Telerik team
Share this question
or