Dynamic tooltip instances created through RadAjaxManager?

3 posts, 0 answers
  1. Benjamin Allfree
    Benjamin Allfree avatar
    2 posts
    Member since:
    Oct 2006

    Posted 04 Jul 2007 Link to this post

    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. Benjamin Allfree
    Benjamin Allfree avatar
    2 posts
    Member since:
    Oct 2006

    Posted 04 Jul 2007 Link to this post

    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.
  3. Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 05 Jul 2007 Link to this post

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