Show context menu anywhere

2 posts, 0 answers
  1. Akram
    Akram avatar
    45 posts
    Member since:
    Dec 2012

    Posted 27 Dec 2012 Link to this post

    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
  2. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 30 Dec 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top