OrgChart - Contextmenu on Node?

4 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 05 Sep 2013 Link to this post

    Hi,

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

    thanks
    best Regards
    rene
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 10 Sep 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 10 Sep 2013 Link to this post

    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
  5. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 13 Sep 2013 Link to this post

    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 >>
Back to Top