ContextMenu on Properties

2 posts, 0 answers
  1. Roxana
    Roxana avatar
    7 posts
    Member since:
    Mar 2013

    Posted 04 Nov 2013 Link to this post


    On my RadPropertyGrid (having AutoGeneratePropertyDefinitions="True") I need to be able to show a context menu having a Reset 
    menu item that will set the default value for the specific property definition selected.

    To make things more complicated I cannot even see a simple ContextMenu for the entire property grid:

    I tried to add a context menu to the whole RadPropertyGrid

    <telerik:RadPropertyGrid.ContextMenu >
         <ContextMenu x:Name="menu">
                <MenuItem Header="Reset" Command="...."></MenuItem>

    But I cannot see that at all because the property grid is contained in the SettingsPaneView of a RadDiagram and no matter where in make the right click inside the PropertyGrid - I get the diagram's context menu

    I badly need help!

  2. Yoan
    Yoan avatar
    1051 posts

    Posted 07 Nov 2013 Link to this post

    Hello Roxana,

    We have already answered to the support ticket you started on the same topic. However, I will post my colleague's answer here as well in case anyone experience the same behavior:

    I tried to create a new tab in the SettingsPaneView control of the RadDiagram and I set a RadPropertyGrid control with defined ContextMenu, inside the new tab. Also, I set a different ContextMenu to the RadDiagram so that I know which one is visualized. 

    However, I could not reproduce the reported behavior with our latest official release of our binaries. If I right click inside the RadPropertyGrid control its ContextMenu is visualized and the ContextMenu of the RadDiagram is visualized only when I right click on the RadDiagram.

    Is it possible for you to create a sample project where the issue can be reproduced and send it over? By doing so we will be able to fully understand your custom scenario and suggest the best approach in your case.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft R3 2016 release webinar banner
Back to Top