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

Tooltip dynamically assigned in repeater somewhat intermittent

2 Answers 31 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
mc2000
Top achievements
Rank 1
mc2000 asked on 17 Aug 2010, 02:25 PM
Pretty simple:

In a asp.net repeater I have an anchor tag which gets a unique id from a databind:
<a id="<%# ((Item)Container.DataItem).List.ListId %>" onclick="javascript:PositionToolTip(this)">...

In a JavaScript method, I want to get the id of the tooltip and set it's target control to the link which clicked it. The code below works; that is until about after 10 or 15 clicks then it starts to show up on incorrect links. No page refreshes are done during this time. Thoughts?

function PositionToolTip(clientId) 
{
    var radToolTip = $find("<%= ModalToolTip.ClientID %>");
    radToolTip.set_targetControlID(clientId.id);
    radToolTip.show();
 }

2 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 20 Aug 2010, 08:55 AM
Hello mc2000,

 I am not aware of such a problem in the scenario you report and the only thing that I can assume that might be causing a problem is some incorrect ajax setting. In case you are not using ajax, I can suggest to test whether the following helps:

1) Set RenderInPageRoot="true" for the tooltip
2) Show it with a little timeout after you have set the target

If the above does not help, I will really need to debug some sample code. Please, prepare a sample, fully runnable reproduction demo (use a fake programmatic datasource), open a new support ticket and send it to me along with detailed reproduction steps and explanations and I will do my best to help.

Best wishes,
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
0
mc2000
Top achievements
Rank 1
answered on 20 Aug 2010, 12:53 PM
I believe that by setting the ajax property ShowEvent="FromCode" the problem appears to be resolved. I don't believe the tooltip was fully closing out...
Tags
ToolTip
Asked by
mc2000
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
mc2000
Top achievements
Rank 1
Share this question
or