ToolTip Modal Problem

2 posts, 1 answers
  1. Torben Frølund
    Torben Frølund avatar
    3 posts
    Member since:
    Nov 2007

    Posted 27 May 2008 Link to this post


    I have discovered a problem with the ToolTip control when it is used in modal mode. If a user click on the page when the modal layer is displayed, the layer will not unload againg unless you reload the page.

    The problem also present on the demo site:

    Hope that someone has a solution. Thanks in advance!
  2. Answer
    Tervel avatar
    1337 posts

    Posted 29 May 2008 Link to this post

    Hi Michael,

    We were able to reproduce the issue. It occurs as a result of "miscommunication" between the "modality" module and the tooltip controler module tracking mouse clicks outside of the tooltip.

    We fixed the problem in our internal build, and it will appear in the next service pack. As a temporary workaround we suggest pasting the following client script on your page above the RadToolTip declaration:

        Telerik.Web.UI.RadToolTipControllerClass.prototype._hideOnBodyClick = function(e)  
            var wasHidden = false;     
            if (this._activeToolTip != null && !this._activeToolTip.isModal())  
               //We need to check whether the element that initiated the click is a child of the tooltip             
               var tooltip = this._activeToolTip;             
               if (tooltip._isMouseOverElement(e, tooltip._tableElement)) return;  
               //Else make a request ot the tooltip to hide     
               wasHidden = this._activeToolTip.hide(true);  
            if (wasHidden) this._activeToolTip = null;  

    Best regards,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top