Tooltip dynamically assigned in repeater somewhat intermittent

3 posts, 0 answers
  1. mc2000
    mc2000 avatar
    48 posts
    Member since:
    Nov 2009

    Posted 17 Aug 2010 Link to this post

    Pretty simple:

    In a 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 %>");
  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 20 Aug 2010 Link to this post

    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,
    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
  3. DevCraft R3 2016 release webinar banner
  4. mc2000
    mc2000 avatar
    48 posts
    Member since:
    Nov 2009

    Posted 20 Aug 2010 Link to this post

    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...
Back to Top