tooltip borders

4 posts, 0 answers
  1. Adam Nelson
    Adam Nelson avatar
    50 posts
    Member since:
    Mar 2008

    Posted 28 May 2008 Link to this post

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

    Posted 02 Jun 2008 Link to this post

    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
  3. Adam Nelson
    Adam Nelson avatar
    50 posts
    Member since:
    Mar 2008

    Posted 02 Jun 2008 Link to this post

    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';
    }

  4. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 03 Jun 2008 Link to this post

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