If CType(e.Item.Cells(6).Controls(0), System.Web.UI.WebControls.ImageButton).ImageUrl = "~/PresentationLayer/img/Info_02_Info.png" Then
RadToolTipManager1.TargetControls.Add(
CType(e.Item.Cells(6).Controls(0), System.Web.UI.WebControls.ImageButton).ClientID, e.Item.Cells(3).Text.ToString(), True)
End If
The issue is that when I am setting the 'value' for the targetcontrol through code behind the value is not getting passed to the Ajaxupdate event.Although when I use markup to set the value, the correct value gets passed in. Unfortunately I cannot use markup for it, since my target control is a imagebutton on the grid.
Protected Sub RadToolTipManager1_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate
Dim ctrl As Control = Page.LoadControl("~\UserControls\SaveTemplateFlyoutDetails.ascx")
e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl)
End Sub
Any help would be appreciated.
<td>
<asp:Label CssClass="StandardText" ID="Label3" runat="server" Text="<%$Resources: SampleCount %>"></asp:Label>
<asp:Label CssClass="StandardText" ID="lblSampleCount" runat="server" Text="0"></asp:Label>
</td>
Rendered as:

| <script type="text/javascript"> |
| function ClientValueChanged(sender, args) { |
| if (args.get_newValue() > 5) |
| sender.get_element().style.backgroundColor = "#ffee00"; |
| else |
| sender.get_element().style.backgroundColor = ""; |
| } |
| </script> |

| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head id="Head1" runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <div style="overflow:hidden;"> |
| <div style="height: 150px; overflow:auto; border:solid 1px black; position:relative;"> |
| <telerik:radupload |
| id="RadUpload1" |
| runat="server" |
| InitialFileInputsCount="10" |
| EnableFileInputSkinning="true"/> |
| </div> |
| </div> |
| </form> |
| </body> |
| </html> |