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

RadTooltipManager Client Side API (HideAll)

3 Answers 113 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Guido Tapia
Top achievements
Rank 1
Guido Tapia asked on 06 Apr 2009, 02:03 AM
Hi,

I'm currently looking at a way of hiding the currently open tooltip using client side api.  I have looked at the documentation and could not find the client side api docs for RadToolTipManager.

Is there a close_all() or hide_all() method for RadToolTipManager?

Adding this to the docs would also be good.

Thanks

Guido Tapia

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 07 Apr 2009, 10:20 AM

Hi Guido,

Only a single tooltip might be visible at any given time. This behavior is by design and will not be changed as changing it would defy the purpose of the control.

The purpose of a tooltip is to provide additional information for a given element. It is not meant to be used as a popup control or as a draggable panel. That is why method as hide_all is not applicable for RadToolTip and thus there is no such implemented. 


Regards,

Svetlina
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Guido Tapia
Top achievements
Rank 1
answered on 08 Apr 2009, 09:35 PM
Hi Svetlina,

I agree that there should not be multiple tooltips allowed.

However I think it may be a good idea to provide a convenient way of hiding the open tooltip.  Such as rttm.hide_tooltip().  This will save the user from hading to save a reference to the currently open tooltip.  Or perhaps something like:

rttm.get_current_tooltip()

Would also serve the same purpose in a more generic manner.

However this is just convenience as currently we can use the client side API to show the tooltip and keep a reference to it.

Thanks

Guido
0
Accepted
Svetlina Anati
Telerik team
answered on 09 Apr 2009, 12:48 PM
Hello Guido,

Actually, there is a method which references the currently active tooltip and it is static - you do not need even to reference the RadToolTipManager. The method returns the tooltip 's client object and it should be called as shown below:

Telerik.Web.UI.RadToolTip.getCurrent();

You can see it used in our online demos, e.g the following one:

http://demos.telerik.com/aspnet-ajax/tooltip/examples/onclientresponseend/defaultcs.aspx


Kind regards,
Svetlina
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
ToolBar
Asked by
Guido Tapia
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Guido Tapia
Top achievements
Rank 1
Share this question
or