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

How to find out is there opened context menu on the page

1 Answer 40 Views
ContextMenu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alexey
Top achievements
Rank 1
Alexey asked on 15 Jan 2015, 09:18 AM
Is there any way to get current opened context menu?
I have main page with several lists with different context menus. Also main page overrides OnBackKeyPress() method to show exit confirmation dialog. Inside OnBackKeyPress() I want to get current opened context menu. If there is no any opened context menu then I want to show exit confirmation.

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 20 Jan 2015, 09:48 AM
Hi Alexey,

You can take advantage of the Opened and Closed events of RadContextMenu for this purpose. You can avoid wiring these events for all the menus in the page if you implement the approach shown in this help topic.


Regards,
Ves
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ContextMenu
Asked by
Alexey
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or