Hello Andrew Thompson,
Unfortunately in this case the code between the '<%= %>' tags is not resolved to the ClientID of the textbox, but is taken as it is. That is why, in order to get the desired result, you can use one of the following approaches:
- Set the TargetControlID of the RadToolTip in the code-behind:
protected void Page_Load(object sender, EventArgs e) |
{ |
this.RadToolTip1.TargetControlID = this.PayLoadTextBox.ClientID; |
} |
- Use databinding expressions (in this case you will have to call DataBind for the RadToolTip):
<telerik:RadToolTip ID="RadToolTip1" runat="server" |
TargetControlID="<%# PayLoadTextBox.ClientID %>" IsClientID="true"></telerik:RadToolTip> |
protected void Page_Load(object sender, EventArgs e) |
{ |
this.RadToolTip1.DataBind(); |
} |
Regards,
Tsvetie
the Telerik team