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

Tooltip works only one time

1 Answer 61 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Jerry
Top achievements
Rank 1
Jerry asked on 15 Oct 2010, 09:19 AM
Hi!

If I put a RadToolTip in the root and also set RenderInPageRoot="true" and I have a couple of buttons inside an RadAjaxPanel in this tooltip. When I click a button in the tooltip I force update another RadAjaxPanel using: RadAjaxPanel1.ResponseScripts.Add(string.Format("$find('{0}').ajaxRequest();", RadAjaxPanel2.ClientID));

This works, it updates the second panel and the data I want is updated as well. The only problem is that the RadToolTip doesn't work for that control anymore. The RadToolTip has TargetControlID="" one of the controls in the second panel.

Another problem is if I don't use RenderInPageRoot="true" The tooltip first pops up at the bottom right of the parent div then jumps to the correct position.

EDIT: The align problem only appears when I use Animation="Slide"
EDIT: The align problem appears when using any kind of animation

Any solution to any of these problems would be great.

Regards, Jerry

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 20 Oct 2010, 02:07 PM
Hi Jerry,

 Straight to your questions:


1) I assume that you have not updated the tooltip along with the target control - please update the tooltip as well along with its target and see whether this fixes the problem. The tooltip control detects when the target is updated in most cases but in some specific cases it is needed to update it as well as you would do with any standard control when you change associated control.

2) The behavior you describe is the natural behavior when you have an element which is child of another element. The very same behavior can be reproduced with standard DIVs and this is how the things work and it is not directly related to RadToolTip. That is why we have provided the RenderInPageRoot property - a demo is available here:

http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipasformchild/defaultcs.aspx

This being said, your scenario requires setting the property and this is what you should do.


Sincerely yours,
Svetlina
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
Tags
ToolTip
Asked by
Jerry
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or