RadTooltipManager Client Side API (HideAll)

4 posts, 1 answers
  1. Guido Tapia
    Guido Tapia avatar
    87 posts
    Member since:
    Jul 2012

    Posted 05 Apr 2009 Link to this post

    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
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 07 Apr 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Guido Tapia
    Guido Tapia avatar
    87 posts
    Member since:
    Jul 2012

    Posted 08 Apr 2009 Link to this post

    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
  5. Answer
    Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 09 Apr 2009 Link to this post

    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.
Back to Top