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

ContextMenu on Properties

1 Answer 164 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Roxana
Top achievements
Rank 1
Roxana asked on 04 Nov 2013, 02:49 PM
Hello!

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>
     </ContextMenu>
</telerik:RadPropertyGrid.ContextMenu>

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!
R

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 07 Nov 2013, 02:09 PM
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.



Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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 >>
Tags
PropertyGrid
Asked by
Roxana
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or