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

RadTreeView ContextMenu

3 Answers 197 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Pelli
Top achievements
Rank 1
Pelli asked on 06 Aug 2015, 12:38 PM

Hi,

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

Thanks,

Subhashini

 

 

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 07 Aug 2015, 10:28 AM
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
0
Pelli
Top achievements
Rank 1
answered on 07 Aug 2015, 01:05 PM

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

0
Martin Ivanov
Telerik team
answered on 10 Aug 2015, 03:31 PM
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
Tags
TreeView
Asked by
Pelli
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Pelli
Top achievements
Rank 1
Share this question
or