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

OrgChart - Contextmenu on Node?

3 Answers 135 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 05 Sep 2013, 12:22 PM
Hi,

i use your orgchart example which is great, is it possible to create a contextmenu on each node?

thanks
best Regards
rene

3 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 10 Sep 2013, 06:48 AM
Hello rene,

I am happy to inform you that we designed a special control that can be used as a context menu and can be easily customized. This control is the SettingsPane. You can see it demonstrated in the DesignToolbox demo of the RadDiagram framework.

Also, you can find downloadable project demonstrating how you can customize the SettingsPane control in our XAML SDK.

Please take a look at the control and let us know if you need any further assistance.

Regards,
Pavel R. Pavlov
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 >>
0
ITA
Top achievements
Rank 1
answered on 10 Sep 2013, 11:30 AM
Hi,

thanks this great, but you use this SettingsPane in the OrgChart example on the bottom left. Is there no way
to create a simple context menu?

thanks
rene
0
Pavel R. Pavlov
Telerik team
answered on 13 Sep 2013, 07:16 AM
Hi rene,

You can create context menu by using the attached telerik:RadContextMenu.ContextMenu property. You can set it in the Style targeting the RadDiagramShape control. Furthermore, you can subscribe to the Opened event of the RadContextMenu in order to get the shape that you clicked on. Also, you can subscribe to the Click event of the RadMenuItem control in order to detect which items has been clicked.

Please note that you need to subscribe to those events using the native EventManager. For your convenience I prepared a sample project demonstrating the described approach. Please take a look at it and let me know if you need any further assistance.

Regards,
Pavel R. Pavlov
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
Diagram
Asked by
ITA
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
ITA
Top achievements
Rank 1
Share this question
or