RadTreeView ContextMenu

4 posts, 0 answers
  1. Pelli
    Pelli avatar
    11 posts
    Member since:
    May 2014

    Posted 06 Aug 2015 Link to this post

    Hi,

    How can I dismiss the rightclick Context menu by pressing "ESC" key in Treeview? Please provide your inputs.

    Thanks,

    Subhashini

     

     

  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 07 Aug 2015 Link to this post

    Hi Subhashini,

    I am not sure what ContextMenu you mean. RadTreeView doesn't have a built-in context menu. Do you mean that you have defined a menu for the tree as described in the How to Add Context Menu help article. If this is your scenario, keep in mind that by default the ContextMenu popup is closed when you press the Esc key. Can you please give me a little bit more information on your case? How you define the menu? Can you send me runnable code snippets demonstrating your implementation so I can test them on my side?

    Regards,
    Martin
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Pelli
    Pelli avatar
    11 posts
    Member since:
    May 2014

    Posted 07 Aug 2015 Link to this post

    Hi ,

    On the radtreeview, we wrote a custom right click context menu using(telerik:radcontextmenu.contextmenu). We are able to get the right click context menu on treeview nodes. Now when we press "ESC" key, this does not dismiss the custom radcontext menu.

    Please Provide any suggestions to acheive that.

    Thanks,

    Subhashini

  5. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 10 Aug 2015 Link to this post

    Hello Subhashini,

    I prepared a small example that demonstrates RadTreeView with context menu for its items. By default the menu closes automatically when you press the "Esc" key. Can you please take a look at the attached project and let me know if I am missing something?

    Regards,
    Martin
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top