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

Detect if ToolTip is Open

1 Answer 94 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 09 Feb 2013, 02:26 PM
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?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 11 Feb 2013, 02:05 PM
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.
Tags
ToolTip
Asked by
Steven
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or