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

Show context menu anywhere

1 Answer 140 Views
ContextMenu
This is a migrated thread and some comments may be shown as answers.
Akram
Top achievements
Rank 1
Akram asked on 27 Dec 2012, 01:12 PM
Hi
how to show the context menu anywhere the mouse location is
i tried to set the placement to MousePoint but it always opens in the left upper corner of the screen.

is this possible to do with RadContextMenu?

Thanks,
Akram

1 Answer, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 30 Dec 2012, 10:25 PM
Hi Akram,

If you are not setting Placement, PlacementTarget or PlacementRectangle of RadContextMenu, it should open exactly where you've clicked with the mouse. Also setting Placement to MousePoint should work in the same manner:
<telerik:RadContextMenu.ContextMenu>
    <telerik:RadContextMenu Placement="MousePoint">
        <telerik:RadMenuItem Header="Item 1">
            <telerik:RadMenuItem Header="Item 1.1"/>
            <telerik:RadMenuItem Header="Item 1.2"/>
            <telerik:RadMenuItem Header="Item 1.3"/>
        </telerik:RadMenuItem>
        <telerik:RadMenuItem Header="Item 2"/>
        <telerik:RadMenuItem Header="Item 3"/>
    </telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>

I'm attaching the sample project I've used. Can you modify it to reproduce the issue? Also, can you confirm which version of Telerik controls are you using? Looking forward to hearing from you.

All the best,
Rosen Vladimirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ContextMenu
Asked by
Akram
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Share this question
or