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

ToolTip position: right aligned

3 Answers 157 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Francois
Top achievements
Rank 1
Francois asked on 20 Oct 2010, 04:57 PM
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

3 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 25 Oct 2010, 09:12 AM
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
0
Francois
Top achievements
Rank 1
answered on 25 Oct 2010, 11:01 PM
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
0
Francois
Top achievements
Rank 1
answered on 26 Oct 2010, 01:33 AM
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
Tags
ToolTip
Asked by
Francois
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Francois
Top achievements
Rank 1
Share this question
or