
Patrick A. Lorenz
Top achievements
Rank 1
Patrick A. Lorenz
asked on 28 Aug 2008, 07:03 AM
Hi there!
We deliver highly dynamic ASP.NET pages. During an UpdatePanel callback to the server the panels content is changing and/or gets extended by new controls. Those also support tooltips. However these tooltips are never shown at all.
Is this approach supported by the tooltip control? Are there any known issues?
Thanks in advance,
Patrick
We deliver highly dynamic ASP.NET pages. During an UpdatePanel callback to the server the panels content is changing and/or gets extended by new controls. Those also support tooltips. However these tooltips are never shown at all.
Is this approach supported by the tooltip control? Are there any known issues?
Thanks in advance,
Patrick
3 Answers, 1 is accepted
0
Hello Patrick,
I created a simple test page to test your scenario, but could not reproduce the problem. Please find my page attached - I used the latest version of the suite, namely version 2008.2.826.20.
Could you please provide a simple running project, demonstrating the problem, so that we can research on our side what is causing it?
Kind regards,
Tsvetie
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I created a simple test page to test your scenario, but could not reproduce the problem. Please find my page attached - I used the latest version of the suite, namely version 2008.2.826.20.
Could you please provide a simple running project, demonstrating the problem, so that we can research on our side what is causing it?
Kind regards,
Tsvetie
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

Patrick A. Lorenz
Top achievements
Rank 1
answered on 08 Sep 2008, 12:47 PM
Tsvetie,
thanks for your reply which however does not fully cover our problem.
I missed to mention that we use the TooltipManager component which is located in a base page. The dynamically created controls reference the manager and add target controls to it. The tooltip contents are loaded on demand using the AJAX update feature.
Would you mind to set up a new sample targeting this scenario?
Thanks in advance,
Patrick
thanks for your reply which however does not fully cover our problem.
I missed to mention that we use the TooltipManager component which is located in a base page. The dynamically created controls reference the manager and add target controls to it. The tooltip contents are loaded on demand using the AJAX update feature.
Would you mind to set up a new sample targeting this scenario?
Thanks in advance,
Patrick
0
Hello Patrick,
When using AJAX and UpdatePanels, it is important to have in mind that not everything that happens on the server gets "automatically" sent and updated on the client. This is exactly what UpdatePanels are for - by default an update panel will only update its own content, and will not cause other parts of the page to be updated.
If we understand your scenario correctly, you execute code that loads a user control in an UpdatePanel. Those controls have some elements for which you want to display RadToolTips. You add those elements' IDs to the RadToolTipManager's TargetControls collection. So far, so good.
However, as you point in your latest message, the RadToolTipManager itself does not belong to an UpdatePanel that gets updated. As a result the server-side "state" of the manager does not get sent to the client - and the client-side manager object does not get replaced with a newer version containing the updated target controls collection.
If we understand the scenario correctly, this is general ASP.NET AJAX problem. What needs to be done in this case is take into account the way AJAX and partial page updates work. You need to make sure that the tooltip manager's parent node gets updated as well, whenever on teh server there is a change to the manager's target controls collection. You can try wrapping the manager in another UpdatePanel, as well as play with the UpdatePanel's update settings which instruct how a panel updates when an AJAX request somewhere on the page is made.
Best regards,
Tervel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
When using AJAX and UpdatePanels, it is important to have in mind that not everything that happens on the server gets "automatically" sent and updated on the client. This is exactly what UpdatePanels are for - by default an update panel will only update its own content, and will not cause other parts of the page to be updated.
If we understand your scenario correctly, you execute code that loads a user control in an UpdatePanel. Those controls have some elements for which you want to display RadToolTips. You add those elements' IDs to the RadToolTipManager's TargetControls collection. So far, so good.
However, as you point in your latest message, the RadToolTipManager itself does not belong to an UpdatePanel that gets updated. As a result the server-side "state" of the manager does not get sent to the client - and the client-side manager object does not get replaced with a newer version containing the updated target controls collection.
If we understand the scenario correctly, this is general ASP.NET AJAX problem. What needs to be done in this case is take into account the way AJAX and partial page updates work. You need to make sure that the tooltip manager's parent node gets updated as well, whenever on teh server there is a change to the manager's target controls collection. You can try wrapping the manager in another UpdatePanel, as well as play with the UpdatePanel's update settings which instruct how a panel updates when an AJAX request somewhere on the page is made.
Best regards,
Tervel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.