Hi,
I have a Datagrid with 3 imagebuttons. I want to display a flyout user control, when the user hovers over one of the imagebuttons. I was able to pull this off using the following code in the ItemDataBound event of the grid.
Thank you.
I have a Datagrid with 3 imagebuttons. I want to display a flyout user control, when the user hovers over one of the imagebuttons. I was able to pull this off using the following code in the ItemDataBound event of the grid.
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.
Thank you.