Detect if ToolTip is Open

2 posts, 0 answers
  1. Steven
    Steven avatar
    29 posts
    Member since:
    Jan 2013

    Posted 09 Feb 2013 Link to this post

    I have a ToolTip that is set to Modal with the ShowEvent and HideEvent both set to FromCode.  Is there a way to determine if the ToolTip is showing in the CodeBehind?
  2. Marin Bratanov
    Marin Bratanov avatar
    4440 posts

    Posted 11 Feb 2013 Link to this post

    Hi Steven,

    The RadTooltip works on the client and only client-side actions can triggers its showing, so there isn't a straightforward way to see if this is has been opened.

    What you can try is getting a reference to the currently shown tooltip (see how to do it here) and store its ID, class, target ID (or any other data) in a hidden field that will be posted on the server so you can obtain the information there. If there isn't data then no tooltip has been shown when the postback has been initiated. The window.onbeforeunload can be useful for full postbacks and the PageRequestManager beginRequest for partial ones.

    All the best,
    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top