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

How to tell if RadContextMenu is visible?

4 Answers 115 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 26 Dec 2007, 07:40 PM
Is there a way to tell if the a RadContextMenu is currently being shown (via client showAt, etc)?
Thanks!

4 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 27 Dec 2007, 11:36 AM
Hi Jay,

You should use the OnClientShowing property of the RadContextMenu control. I just noticed that the help information on our website is a bit corrupted, please excuse us for that. We are working on fixing it asap.

Kind regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jay
Top achievements
Rank 1
answered on 27 Dec 2007, 05:58 PM
Is this on the client side? I am looking for Javascript to determine if a context menu is currently being displayed. I guess I can look at the the OnClientContextHidden and OnClientContextShown events in Javascript and keep a state variable. But I was wondering if there were an easier way (check a variable, or a CSS style).
Thanks
0
Erjan Gavalji
Telerik team
answered on 28 Dec 2007, 07:14 AM
Hi Jay,

Yes, the OnClientShowing property of the RadContextMenu "Prometheus" control denotes the onshowing event of the client object to which you can attach a javascript function to be executed.

Please, find attached an example page I just created.

By the way, if by any chance are referring to RadMenu "Classic", you should use its OnClientContextShowing property.

I hope this helps.

Best regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jay
Top achievements
Rank 1
answered on 28 Dec 2007, 07:31 PM
Thanks again for the excellent support!!
Tags
Menu
Asked by
Jay
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Jay
Top achievements
Rank 1
Share this question
or