how to open contextmenu in empty grid

3 posts, 0 answers
  1. Ralf
    Ralf avatar
    77 posts
    Member since:
    Jun 2012

    Posted 16 Jan 2013 Link to this post

    Hi,

    I have a gridview placed in my usercontrol, and added a RadContextMenu to the grid via XAML. The context menu will be shown fine when I right click onto a row. But I need to open the contextmenu in any area of the grid.
    For example I need to copy and paste some data into the grid, and the grid is empty.
    How to solve my problem?

    Regards,

    Ralf
  2. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 17 Jan 2013 Link to this post

    Hello Ralf,

    I have prepared a sample project that you can find attached. As you can see from it, I have defined a RadContextMenu in my GridView without doing something special and I am able to show the ContextMenu not only by right-clicking on the rows. Can you refer to demo project and let me know how it differs from yours ?

    Regards,
    Yoan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Ralf
    Ralf avatar
    77 posts
    Member since:
    Jun 2012

    Posted 17 Jan 2013 Link to this post

    Hello Yoan,

    thank you for the sample. Yes, my implementation was different. The contextmenu was implemented in an  inherited class and there was set a wrong flag in the Opened event.

    Thank you for support.

    Best regards,
    Ralf
Back to Top