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

RadTooltip inside RadDock

3 Answers 39 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 31 Oct 2008, 08:26 PM
I have a RadToolTip (Modal="true" RelativeTo="BrowserWindow") that is not displaying correctly when it is located inside a RadDock.

I can attach a sample project if you wish to demonstrate the behavior.  I would attach it now, but I can't seem to find where to do it.

I uploaded it to my ftp account:

Sample Project



3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 03 Nov 2008, 03:57 PM

Hello Justin,

I examined your project and I was able to reproduce the described problem. The problem comes form the fact that the RadToolTip was added as a child of the RadDock control. You can change this by overriding the default way of adding the tooltip and add it at the end of the form, as shown below:

  <script>     
    if (typeof(Telerik) != "undefined")     
    {     
        Telerik.Web.UI.RadToolTip.prototype._addToolTipToDocument = function(elem)     
        {                                
           //Append tooltip to end of document                                    
           var form = document.forms[0];             
           form.appendChild(this._popupElement);           
        };     
    }     
    
</script>   

Please, note that this solution is not suitable in case you use AJAX when loading the tooltip content.

As to attaching projects, you cannot do this in the forums - in order to attach a demo you should open a new support thread instead of forum one.

Best wishes,

Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Justin
Top achievements
Rank 1
answered on 03 Nov 2008, 04:45 PM
Wouldn't the correct behavior be to not add it as a child to the dock since "RelativeTo=BrowserWindow" is being set?
0
Tervel
Telerik team
answered on 04 Nov 2008, 07:31 AM
Hi Justin,

I am not able to guarantee at this point whether this suggestion will be implemented or not, but it makes sense and we will add it to our product backlog items list.

Sincerely yours,
Tervel
the Telerik team

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