ToolTip position: right aligned

4 posts, 0 answers
  1. Francois
    Francois avatar
    3 posts
    Member since:
    Oct 2010

    Posted 20 Oct 2010 Link to this post

    Hi

    I want to be sure that I cannot do this:
    Align the right border of the tooltip with my element (in example below Element=link).

                  link
    #### tooltip #####


    The thing is that my tooltip is variable in length dependent on the content. So it could be 200 or 400 pixels for example.

                  link
    #### lots of text in tooltip #####


    But since the link is on the right side of the window, it goes partially hidden.

    The good solution would be to have a new position="RightAlign".

    Let me know,
    Francois
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 25 Oct 2010 Link to this post

    Hi Francois,

    You can change the RelativeTo and Position properties of the control in order to tweak it for your specific needs. You can observe the behavior of the control online in this demo.

    I hope this helps.

    Kind regards,
    Fiko
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Francois
    Francois avatar
    3 posts
    Member since:
    Oct 2010

    Posted 25 Oct 2010 Link to this post

    Hi,

    I saw the offered Positions and RelativeTo and tried them out beforehand posting and I don't think it does what I want.

    With all the Positions, it seems it's always take the left side of the tooltip and align it according to the requested Position. What I want to do is take the right side of the tooltip and have the positioning relative to that. Considering that the tooltip width cannot be known beforehand, I want it to overflow on the left and have the right side always at the same position (relative to element, or browser, etc).

    You see what I'm trying to do? Please let me know the right recipe for that.

    Thanks,
    Francois
  5. Francois
    Francois avatar
    3 posts
    Member since:
    Oct 2010

    Posted 25 Oct 2010 Link to this post

    I tried to place it with Position = MiddleLeft, so that it takes the right border to align itself relative to element and then I can play with offsetX. I'm going to try it out tomorrow...

    (update) It doesn't work. I have to specify width=XXX for it to work correctly, otherwise it doesn't "know" where the right edge is and so it doesn't align it correctly with the element. I cannot specify width because the width depends on the content of the tooltip, which can change. Any post-render javascript hack I could use? Or a new feature request?

    Please try it out.

    Thanks,
    Francois
Back to Top