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

    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?

  2. Rosen Vladimirov
    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 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 Header="Item 2"/>
            <telerik:RadMenuItem Header="Item 3"/>

    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.

Back to Top