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

RadToolTip - Incorrect Position

2 Answers 163 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Andrew Buxton
Top achievements
Rank 1
Andrew Buxton asked on 19 Nov 2010, 10:58 AM
Hi,

This is an interesting issue and I cannot seem to find a programmatic solution to it.

I have two grids (left and right), either side of a splitterbar (these components consume the entire browser window). The left grid items display a tooltip on rollover and the tooltip is displayed "MiddleRight", relative to the left grid item. This causes the tooltip to appear on the otherside of the splitterbar over the top of the second grid, which is correct.  When I move the splitter to the right and reduce the amount of visible grid on the right, the tool tip displays "MiddleLeft" which is correct as there is not enough room on the right to display the tooltip.

However ... The exact same browser on the occasional different machine always displays the tooltip on the "MiddleLeft". It's like the control is unable to calculate the available space on the right, or simply cannot retrieve that figure. Is there any way I can influence the calulcation for tooltip positioning? If it is unable to reference or calculate the required figure, perhaps I can get the width of the visible space on the right and set it manually?

This is an urgent issue for me as I'm nearing project end, I would appreciate any help you can provide at this time.

I thank you in advance,



Andrew Buxton.

2 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 24 Nov 2010, 02:24 PM
Hi Andrew Buxton,

 Indeed, it is interesting that the same code under the same browser behaves differently on different machines. What I can suggest is to try the following:

1) Set explicit width and height to the tooltip, especially if you are using RadToolTipManager with LOD. Note, that if the tooltip should be bigger than you set it is not a problem and it will resize if you have not changed the default value of the ContentScrolling property.

2) Try to call _show (note that this is a private method _show and not the public show) after the tooltip was shown. If this does not help, try to call it with a little timeout (try with 0 and e.g 10); If you are using LOD try to call it in OnClientResponseEnd event.

3) Try the suggested in 2) with the private _adjustCallout() method (again when shown and when loaded events and with/without timeout).

If one of the above resolves the issue but there are still some side effects (e.g jump, etc) let us know what are the results of your tests. If none of the above helps, please let us know how to observe the issue locally because otherwise we are not able to help without knowing what is actually going on.

All the best,
Svetlina
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Andrew Buxton
Top achievements
Rank 1
answered on 25 Nov 2010, 12:30 PM
Hi Svetlina,

I worked your suggestions but none solved this particular issue.

I did however have a brainwave as I was working through your suggestions. I noticed the tooltip was showing above the scrollbar in the left grid and the splitter. The offsetX value of my tooltip was set to 0 so I tried setting it to push the toolip completely out the way of the scrollbar and splitter and that solved this problem.

Just so you're aware I only experienced this issue in Kiosk or F11 mode on Internet Explorer 8 running in IE7 compatibility mode.

Many thanks for your help.

Best wishes,



Andy.
Tags
ToolTip
Asked by
Andrew Buxton
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Andrew Buxton
Top achievements
Rank 1
Share this question
or