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

Dynamic tooltip instances created through RadAjaxManager?

2 Answers 91 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Benjamin Allfree
Top achievements
Rank 1
Benjamin Allfree asked on 04 Jul 2007, 05:10 PM
I have a segment of code that dynamically generates some Image controls along with RadToolTips to accompany them.

When this code is run as part of an Ajax update, none of the tool tips work.

Does the tool tip code require some page load initialization that is not running on an Ajax callback?

I can see through Fiddler that the controls are in fact being generated. It's as if the JavaScript that wires up the mouseover event to make the tooltip show is not executing.

2 Answers, 1 is accepted

Sort by
0
Benjamin Allfree
Top achievements
Rank 1
answered on 04 Jul 2007, 05:22 PM
More experiments - appears to be an issue with programatically creating a tooltip. Depending on where in the control hierarchy I place the tooltip instnce, it can break.
0
Tervel
Telerik team
answered on 05 Jul 2007, 02:01 PM
Hello Benjamin,

We are not sure what the reason might be. Just like any .NET control, there should be no difference between declaring a tooltip on the page or creating it programmatically.
The tooltip does not require anything specific (except having a ScriptManager on the page, of course).

As long as you set a correct TargetControlID that resolves to an existing element ID on the client browser, the tooltip should work fine. In case the tooltip is not able to find such an ID on the client, nothing happens (like in your case).

This could appear in the case of using Repeaters or other INamingContainers that modify the element's ID.

In case you are not able to resolve the issue by yourself using the provided information, please send us a simple project that demonstrates the problem and we will get back to you with a solution/suggestion.

Best wishes,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ToolTip
Asked by
Benjamin Allfree
Top achievements
Rank 1
Answers by
Benjamin Allfree
Top achievements
Rank 1
Tervel
Telerik team
Share this question
or