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

RadMenu looking like a ContextMenu but bound to a control

2 Answers 34 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Michael Arocho
Top achievements
Rank 2
Michael Arocho asked on 19 Aug 2009, 07:21 PM
Hi,

I have an ImageButton where the functionality of left clicking on the button causes a ContextMenu to appear below it.  One of the issues that is happening is that if i tab to the imagebutton and hit enter the context menu opens up wherever the mouse is.

Is there anyway to provide a target control for the RadMenu when in context mode so that it will always open relative to that control?

2 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 24 Aug 2009, 08:53 AM
Hello Michael,

Actually this is expected behavior of RadContextMenu. I've attached a simple page which demonstrates how to show the context menu in a particular place using its showAt() client-side method.  Please download the attached file and give it a try.

All the best,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Michael Arocho
Top achievements
Rank 2
answered on 24 Aug 2009, 11:40 AM
Hi, that code worked great.  I could not get the scripts from $telerik to work, but was able to work around that.

Thanks
Tags
Menu
Asked by
Michael Arocho
Top achievements
Rank 2
Answers by
Yana
Telerik team
Michael Arocho
Top achievements
Rank 2
Share this question
or