I've been trying to follow the example given here but i kept getting the error that
AppointmentToolTip
wasn't defined. I started looking on the forums and found some alternate examples and i was actually able to see the custom control pop up with this route that i took...problem is i get a "Input string was not in a correct format" error. Heres my current code or if you can tell me why the telerik example is not working that would be fine too.Public Sub RadCal_AppointmentCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.AppointmentCreatedEventArgs) Handles RadCal.AppointmentCreated |
Dim clientID As String = e.Appointment.ClientID |
Me.RadToolTipManager1.TargetControls.Add(clientID, e.Appointment.ID.ToString(), True) |
End Sub |
Public Sub RadToolTipManager1_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate |
Dim apt As Appointment = RadCal.Appointments.FindByID(Int32.Parse(e.Value)) |
Dim ctlTooltip As Control = LoadControl("Controls/AppointmentToolTip.ascx") |
Dim lblJobName As Label = DirectCast(ctlTooltip.FindControl("lblJobName"), Label) |
lblJobName.Text = apt.ID.ToString |
e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctlTooltip) |
End Sub |
<telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="320" Height="170" |
OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" AutoTooltipify = "true" |
ShowEvent="OnRightClick" |
ManualClose="true" |
Modal="true" /> |
<telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="320" Height="170" |
OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" AutoTooltipify = "true" |
ShowEvent="OnRightClick" |
ManualClose="true" |
Modal="true" /> |