Is there an example for creating and binding a radtooltip to another runtime created control? I have used it before with success when statically defined, but I tried something simple today I thought should work and it does not. Everything is in as expected in viewsource, but no popup. This is called in page.preinit. There are radnumerictextboxes in the previous cell of the same row, created within the same loop, that work perfectly fine.
Viewsource shows this:
Thank you for any insight you can provide.
If Not IsDBNull(myreader("rollovertext")) Then |
Dim tooltip As New Telerik.Web.UI.RadToolTip |
Dim qimage As New System.Web.UI.WebControls.Image |
Dim imgname As String |
imgname = "img" & CStr(myreader("CalcOrderID")) |
With qimage |
.ImageUrl = CStr(myreader("ImgPath")) |
.ID = imgname |
End With |
With tooltip |
.ID = "tooltip" & CStr(myreader("CalcOrderID")) |
.TargetControlID = qimage.id |
.Text = CStr(myreader("rollovertext")) |
.Width = "150" |
.AutoCloseDelay = 10000 |
.Skin = "Web20" |
.Position = ToolTipPosition.MiddleRight |
.OffsetY = 0 |
.OffsetX = 10 |
.ShowDelay = 300 |
End With |
helpcell.Controls.Add(qimage) |
helpcell.Controls.Add(tooltip) |
End If |
Viewsource shows this:
<img id="img2" src="images/qmark16.png" style="border-width:0px;" /><div id="tooltip2" style="display:none;"> |
<input id="tooltip2_ClientState" name="tooltip2_ClientState" type="hidden" /> |
Sys.Application.add_init(function() { |
$create(Telerik.Web.UI.RadToolTip, {"autoCloseDelay":10000,"clientStateFieldID":"tooltip2_ClientState","formID":"form1","offsetX":10,"offsetY":0,"position":23,"showDelay":300,"skin":"Web20","targetControlID":"img2","text":"roll 3","width":"150px"}, null, null, $get("tooltip2")); |
}); |
Thank you for any insight you can provide.