How to tell if RadContextMenu is visible?

5 posts, 0 answers
  1. Jay
    Jay avatar
    89 posts
    Member since:
    Nov 2007

    Posted 26 Dec 2007 Link to this post

    Is there a way to tell if the a RadContextMenu is currently being shown (via client showAt, etc)?
    Thanks!
  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 27 Dec 2007 Link to this post

    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
  3. Jay
    Jay avatar
    89 posts
    Member since:
    Nov 2007

    Posted 27 Dec 2007 Link to this post

    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
  4. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 28 Dec 2007 Link to this post

    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
  5. Jay
    Jay avatar
    89 posts
    Member since:
    Nov 2007

    Posted 28 Dec 2007 Link to this post

    Thanks again for the excellent support!!
Back to Top