I have a simple User Control with which I'd like to add a RadToolTip. Here's the layout code of the User Control:
This User Control is generally instantiated multiple times on a given page and is being used in an ASP.NET AJAX environment.
Now, if I hardcode some text into the tooltip then everything works fine. But what I really want to do set a custom string to radToolTip1.Text in the User Control's startup code [Page_Load or Page_PreRender or Page_Init]. When such code is implemented, it does run without any errors but then no tooltip appears.
What am I doing wrong?
Robert
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="fcLine.ascx.cs" Inherits="Website.UserControls.FCLine" %><asp:HiddenField ID="lineColor" runat="server" /> <%-- Used by client code dealing with MouseOver & MouseOut --%><asp:Panel ID="panelLine" runat="server" CssClass="fcLine"> <div> <asp:Panel ID="panelLeft" runat="server" CssClass="fcLineInnerLeft" /> <asp:Panel ID="panelRight" runat="server" CssClass="fcLineInnerRight" /> <%-- Note: Margin-Left's -10px = -1 * 1/2 * Width of the icon --%> <%-- Note: The Margin-Top value of 50% is replaced in the server-side code if a straight line is involved --%> <asp:Panel ID="panelBubble" runat="server" style="float:left; position:relative; margin-left:-10px; margin-top:50%"> <img src="/Images/Shapes/circle2.png" style="position:absolute; left:0; top:0" /> <p style="position:absolute; left:7px; color:white; font-weight:bold; padding-top:3px"> <asp:Label ID="labelBubble" runat="server" /> </p> </asp:Panel> <div style="clear:both"></div> </div></asp:Panel><telerik:RadToolTip ID="radToolTip1" runat="server" TargetControlID="panelLine" RelativeTo="Element" Position="BottomCenter" RenderInPageRoot="false"> Hardcoded Test Tooltip</telerik:RadToolTip>This User Control is generally instantiated multiple times on a given page and is being used in an ASP.NET AJAX environment.
Now, if I hardcode some text into the tooltip then everything works fine. But what I really want to do set a custom string to radToolTip1.Text in the User Control's startup code [Page_Load or Page_PreRender or Page_Init]. When such code is implemented, it does run without any errors but then no tooltip appears.
What am I doing wrong?
Robert