Hopefully someone can help me.
I have a user control that will have a tool tip on it.
So I have a tooltip manager on it:
in the code behind for the control I have
I step through the code and on the mouseover of my target it goes into these methods but when its all done, the tooltip is just blank. Any ideas on what I should look at?
I have a user control that will have a tool tip on it.
So I have a tooltip manager on it:
| <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Skin="Vista" OnAjaxUpdate="OnAjaxUpdate" Position="MiddleRight" Width="400px" Height="300px" Animation="Slide" Sticky="true" /> |
in the code behind for the control I have
| protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args) |
| { |
| this.UpdateToolTip(args.Value, args.UpdatePanel); |
| } |
| private void UpdateToolTip(string elementID, UpdatePanel panel) |
| { |
| HtmlGenericControl htmlGenericControl = new HtmlGenericControl("H1"); |
| htmlGenericControl.InnerText = "<font style=\"color: black;\">This is a tool tip for " + elementID + "</font>"; |
| panel.ContentTemplateContainer.Controls.Add(htmlGenericControl); |
| panel.ContentTemplateContainer.Controls.Add(new HtmlGenericControl("HR")); |
| } |
I step through the code and on the mouseover of my target it goes into these methods but when its all done, the tooltip is just blank. Any ideas on what I should look at?