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

tooltips in an iframe clipped

2 Answers 214 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Greg Mercer
Top achievements
Rank 1
Greg Mercer asked on 02 May 2010, 11:41 PM
Hi,

I have an issue where I need to display a RadScheduler control in an iframe within a parent page.

So the pages are arranged like this:
[Parent Page]
    [iframe]
        RadScheduler - appointments with RadToolTips
    [/end of iframe]
[/end of Parent Page]

All of this works fine until it comes time to show a tooltip for one of the appointments in the RadScheduler - the tooltip is cut off by the iframe.

Is there a way to have the tooltip display in the parent page, so that the entire tooltip can be seen?

I've setup a simpler example to show the issue, but I couldn't seem to upload a .zip file attachment to my forum post.

The code for the parent page looks something like this:

<telerik:RadToolTip runat="server" ID="RadToolTip1" Width="280px" Height="70px" TargetControlID="elvis.red" 
    OffsetX="0" OffsetY="0" IsClientID="true" EnableViewState="true" ShowCallout="false"
    <br /> 
    <img src="ToolTip.png" alt="&nbsp;" />         
</telerik:RadToolTip> 
 
<iframe id="elvis" src="frametest.aspx" frameborder="1"></iframe> 

And the code for the iframe looks something like this:
<div id="red"></div> 

I thought maybe it had something to do with how the TargetControlID is set. I tried a few things including trying to set the targetControl dynamically with client side script, but with no luck.

Thanks so much for your help,
Greg

2 Answers, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 03 May 2010, 05:13 PM
Perhaps you should try setting the RenderInPageRoot="true" on the RadToolTip control.

I hope that helps. 

0
Svetlina Anati
Telerik team
answered on 05 May 2010, 12:46 PM
Hello guys,

Please, note that the RadToolTip is actually composed by standard HTML elements and it has the same limitations as them. One of those limitations is that it cannot be displayed outside an IFRAME element and this is not directly related to RadControls or RadToolTip but to the way the things work - you can also test e.g with a standard DIV element and you will see that you cannot get it outside the IFRAME.

This being said what I can suggest is to revise your setup, e.g one easy solution is to change the size of the tooltip to be wider and with smaller height - in this manner it should be visible even displayed near the end of the frame.


Sincerely yours,
Svetlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ToolTip
Asked by
Greg Mercer
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or