UpdateToolTip Firing but Tooltip is not populated

5 posts, 0 answers
  1. Steve
    Steve avatar
    3 posts
    Member since:
    Apr 2008

    Posted 04 Jun 2008 Link to this post

    Hi,

    I have an aspx page with a RADToolTipManager containing the AJAXUpdate. The OnAjaxUpdate Sub fires ok and subsequently calls UpdateToolTip.

    In my UpdateToolTip Sub, I dynamically load my UserControl - which I can also debug and this is working also.

    My problem is that the tooltip is always empty. The tooltip displays for a few seconds and then disappears without having shown anything.

    I have changed my usercontrol to contain only a static image and it still will not display.

    If I try and use a sqldatarepeater, dynamically populated from the code behind, I cannot reference the controls on my aspx as I get a "Object is not set to an instance of an object" error - something to do with the event order I think.

    I have tried following the online example by using a datasource on the aspx page and although I get no errors, still nothing is displayed.

    Am I missing something? Any help much appreciated, this is driving me crazy.

    Regards,

    Steve
  2. Steve
    Steve avatar
    3 posts
    Member since:
    Apr 2008

    Posted 04 Jun 2008 Link to this post

    Can I just check that this functionality will work in the trial verison?
  3. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 04 Jun 2008 Link to this post

    Hi Steve,

    Yes, this functionality of RadToolTipManager is available in the trial versions.

    Since I do not have your code I can not be sure what exactly causes it and I can only assume that probably you have not called the DataBind() method in your user control.

    I am attaching a sample project which demonstrates the desired functionality, please examine it and in case this does not help to locate the problem, open a new support ticket and send me a fully running project (including DB) or modify mine in order to reproduce the problem. Once I receive it I will do my best to help.

    Greetings,
    Svetlina
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  4. Steve
    Steve avatar
    3 posts
    Member since:
    Apr 2008

    Posted 04 Jun 2008 Link to this post

    Svetlina,

    Thanks for the feedback.

    I can see what the example is doing but I believe that my scenario is a little more complex. I am unwilling to create a separate project replicating the problem as it would literally take me hours to do so. I'll try my best to explain the setup that I have...

    I have an aspx page which contains a sqldatarepeater in which there is a usercontrol. Within this usercontrol is another usercontrol in which there is an asp.net imagebutton.

    In my itemdatabound procedure on my aspx, I am adding the clientid of the imagebutton (not either of the containing controls) to the TargetControls collection of my RadToolTipManager which is also on my aspx page. I do this by grabbing the clientID of the outer control, suffixed with the name of my two nested controls. I.e. oOuterControl.ClientID & "_ImageButtonContainerControlID_ImageButtonID" which works fine as the ToolTip appears for each ImageButton onmouseover.

    I am almost sure that the problem is caused by this control "nesting" and the order in which the events are fired. I did have a play with the example you sent me but I am still getting a "Object not set to an instance of an object" error message so I cannot refer to any controls on my ascx page from my ascx.vb code.

    Regarding this ascx which I would like to use for the dynamic content of the Tooltip. If this simply contains a static image and no code behind, should this not display regardless of me binding it to any data?

    Many thanks in advance for your attention,

    Steve
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 09 Jun 2008 Link to this post

    Hi Steve,

    I prepared a sample project which covers the scenario you describe:

    There is a repeater control, which has a user control in its item template. In this user control there is another user control and an image button inside it, which is the target element. Another user control is loaded in the OnAjaxUpdate event of RadToolTipManager and some value is passed to it.

    Please, examine my test project which is attached. I hope that it is helpful.

    As to my assumption about calling the user control's DataBind() method, I assumed that you could have only an image, but its url is evaluated and taken from the DB as shown in our online example. In this case, when you have code blocks like <%%> in order to evaluate the expression you should call the image's DataBind method.


    All the best,
    Svetlina
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top