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

tooltip rollover does not be updated to content for showing

2 Answers 38 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 28 Apr 2015, 12:12 AM

Hi All,

 I am facing a problem with tooltip, that the rollover keeps showing and does not be updated to the content. I can see the response contains the html code of the content ready for showing, but the rollover keeps showing and does not be changed to the html content.

 I am using the version 3.5.0.0. and here is the settings:

<telerik:RadToolTipManager runat="server" AnimationDuration="150" ShowDelay="200" OnClientResponseError="OnClientResponseError"<br>    HideDelay="10" HideEvent="LeaveToolTip" Position="TopCenter" RenderMode="Classic" ID="radTooltipMgr" Width="660px" Height="390px" RelativeTo="Element"<br>    Animation="Fade" OnAjaxUpdate="OnAjaxUpdate" EnableDataCaching="True" AutoCloseDelay="0" RenderInPageRoot="True" Skin="BlackMetroTouch"><br></telerik:RadToolTipManager>

Does someone have the same problem with me?

Thanks for any suggestion!

2 Answers, 1 is accepted

Sort by
0
Justin
Top achievements
Rank 1
answered on 28 Apr 2015, 01:34 AM

Just forgot to mention that, It happens on I change the page mulitple times.

 

protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)<br>        {<br>            this.UpdateToolTip(args.Value, args.UpdatePanel);<br>        }

private void UpdateToolTip(string elementID, UpdatePanel panel)<br>        {<br>            Random random = new Random();<br>            int randomNumber = random.Next(0, 100);<br><br>            Control ctrl = Page.LoadControl("Controls/Data/AssetProductToolTip.ascx");<br>            ctrl.ID = "UcProductDetails" + randomNumber;<br><br>            panel.ContentTemplateContainer.Controls.Add(ctrl);<br>            AssetProductToolTip details = (AssetProductToolTip)ctrl;<br>            details.ProductID = int.Parse(elementID);<br>        }

 

0
Marin Bratanov
Telerik team
answered on 28 Apr 2015, 08:22 AM

Hi Justin,

Such an issue can be due to an error, either on the server (which can send HTML for an error page, depending on your server setup), or on the client. Can you confirm this is not the case?

Also, I advise providing the same ID to the user control each time, without a random number.

Regards,

Marin Bratanov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
ToolTip
Asked by
Justin
Top achievements
Rank 1
Answers by
Justin
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or