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

ajax call seems to close my tooltip

4 Answers 91 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Chris Dalessandri
Top achievements
Rank 1
Chris Dalessandri asked on 16 Sep 2008, 04:40 PM
I have a tooltip, with a Usercontrol on it.  The usercontrol makes an Ajax callback to refresh itself but when the ajax call returns it closes the entire tooltip. The tooltip is set so that it should not close until I click the close button.

Is this normal behavior?

thanks.

4 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 18 Sep 2008, 10:53 AM
Hi Chris,

I am not quite sure about your exact configuration and that is why I prepared a sample project built up on my assumptions based on the provided information.

The project includes a hyperlink, which is the target control and the tooltip shows up with a user control in it. When you press a button in the user control it performs an ajax request to update a label in the user control. I implemented this test scenario both with RadToolTip and with RadToolTipManager but I was not able to reproduce the problem.

Would you please modify the attached project in order to reproduce the problem, open a new support ticket and send it back to me along with a detailed explanation of the problem? Once I receive it, I will do my best to help.  

All the best,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chris Dalessandri
Top achievements
Rank 1
answered on 25 Sep 2008, 03:39 AM
I modified your example and replied to your email with my new project.  Did you get the email?

thanks.
0
Svetlina Anati
Telerik team
answered on 30 Sep 2008, 08:05 AM
Hello Chris,

Thank you for modifing the demo - I was able to reproduce the described behavior. What actually happens in the project is the following:

  1. When you ajaxify controls by using the RadAjaxManager you actually wrap them in a dynamically created update panels. This being said your setup is equivalent to wrapping the Panel1 into an update panel on the main page and wrapping the button and the label in another update panel inside the user control.
  2. When you have the setup explained in 1, when you update the inner panel, the outer panel gets updated, too. You can change this behavior by setting the outer panel's UpdateMode=Conditional and update it through code when needed.
  3. While the update panels are static, the ones created from the RadAjaxManager are dynamically created, it is a complex control and in this specific situation it is not suitable to configure it as explained in 2. That is why when you click the button in the user control, both the user control content and the panel which holds the tooltip are updated and the tooltip closes itself due to its parent being updated.

I am not quite sure about your exact scenario and why you need to update the tooltip and its content separately but I can suggest to use one of the following approaches:

  1.  Replace the ajax settings with update panels and set the outer panel's UpdateMode=Conditional
  2. Move the tooltip out of the panel (do not ajaxify it)
  3. Use RadToolTipManager instead of RadToolTip, depending on your scenario (it adds internally an update panel, when the OnAjaxUpdate is fired)

Sincerely yours,
Svetlina
the Telerik team


Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chris Dalessandri
Top achievements
Rank 1
answered on 01 Oct 2008, 12:39 PM
Thanks for confirming it, I will have to take so time to see if any of these solutions will work for my scenario.
Tags
ToolTip
Asked by
Chris Dalessandri
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Chris Dalessandri
Top achievements
Rank 1
Share this question
or