I tried to search but not able to find it. I am not able to make it work when putting tooltip control inside of radajaxpanel. Please suggest - thanks!
Structure is showing below
<AjaxPanel>
<Button>
<Panel>Dynamic Tooltip added from code behind
</AjaxPanel>
Sampe code
<telerik:RadAjaxPanel ID="test1" runat="server">
<asp:Panel ID="pl" runat="server">
<asp:Button ID="Button2" runat="server" Text="Show Login Form" CssClass="button" />
/asp:Panel>
</telerik:RadAjaxPanel>
Code behind
Partial
Class test5
Inherits System.Web.UI.Page
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
ShowPopupMessage(
"adfadsf")
End Sub
Public Sub ShowPopupMessage(ByVal message As String)
Dim popupMessage As New Telerik.Web.UI.RadToolTip
SetPopupControlProperties(popupMessage)
popupMessage.Text = message
Me.Form.Controls.Add(popupMessage)
End Sub
Private Sub SetPopupControlProperties(ByRef control As Telerik.Web.UI.RadToolTip, Optional ByVal isModal As Boolean = False)
With control
.Position = Telerik.Web.UI.ToolTipPosition.Center
.RelativeTo = Telerik.Web.UI.ToolTipRelativeDisplay.BrowserWindow
.Animation = Telerik.Web.UI.ToolTipAnimation.FlyIn
.ManualClose =
False
.Modal = isModal
.VisibleOnPageLoad =
True
If isModal Then
.ManualClose =
True
Else
.ManualClose =
False
End If
End With
End Sub
End
Class