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

tooltip borders

3 Answers 52 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Adam Nelson
Top achievements
Rank 2
Adam Nelson asked on 28 May 2008, 09:00 PM
Is anyone having this issue...or able to reproduce it?

Certain skins of the tooltip that use images as borders for the tooltip dont always show up on the client.

I was able to change the skin of the RelativeTo sample to Web20, Vista, and Office2007 on my locally installed set and was seeing the same issue, I'm not sure if its something with the control or with my browser(IE7)/machine.

UPDATE: The borders are not showing up when the tooltip is in a user control that is used on the form, if I add a tooltip with the same properties directly on the form and assign it to a different target for testing, the borders always appear. Could be an issue of page/user control | master/content scenarios??
 

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 02 Jun 2008, 11:33 AM
Hello Adam,

I tested the described setup but unfortunately I was not able to reproduce the problem.

I am not quite sure how exactly you load the user control - by using AJAX or not?

Please, modify my test project in order to reproduce the problem, open a new support ticket and send it back to me. Once I am able to examine the problem locally I will do my best to help.

Sincerely yours,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Adam Nelson
Top achievements
Rank 2
answered on 02 Jun 2008, 04:59 PM
Hi Svetlina,

Thanks for taking time to try and reproduce the issue.  It took me a while to figure out the scenario that was causing the problem, and i think its when the content of the tooltip is wider than the width specified for it, and when the applied skin has images for left and right borders.

This can be seen easiest by changing the shipped examples skin to Web20. The width is set at 300px and the image is closer to 400px wide.

For some reason it was happening to me in my application even though I wasnt setting the width on the tooltip, but I was able to find a workaround by using the OnClientShow property to execute the following javascript:

function

onclientshow(sender, args)
{
    
var tooltipwrapper = $get('RadToolTipWrapper_' + '<%= RadToolTip1.ClientID %>');
    tooltipwrapper.style.width =
'auto';
}

0
Svetlina Anati
Telerik team
answered on 03 Jun 2008, 11:46 AM
Hello Adam,

Thank you for clarifying the problem and explaining the reproduction setup.

This is not a bug but an expected behavior when you have explicitly set sizes and the content is bigger than the RadToolTip itself. This being said you should either set bigger sizes or let the RadToolTip calculates its size based on its content. That is the default behavior when there are not set sizes and you do not need to achieve this by yourself as you do in the OnClientShow handler.


Sincerely yours,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ToolTip
Asked by
Adam Nelson
Top achievements
Rank 2
Answers by
Svetlina Anati
Telerik team
Adam Nelson
Top achievements
Rank 2
Share this question
or