This is a migrated thread and some comments may be shown as answers.

Problem with ToolTip in Schedular

2 Answers 116 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 16 Jan 2009, 06:23 PM
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 ObjectByVal 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 ObjectByVal 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" /> 


2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 19 Jan 2009, 02:43 PM
Hi Ben,

I suggest you review this example in your local installation of the Telerik.Web.UI controls at

...\Live Demos\Scheduler\Examples\RadToolTip

AppointmentToolTip.ascx is a user control that is loaded through the RadTooltip manager. You need to make sure that this user control exists in your application and that it is correctly referenced in the page:

aspx:
<%@ Reference Control="AppointmentToolTip.ascx" %>



Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ben
Top achievements
Rank 1
answered on 19 Jan 2009, 02:45 PM
I actually just figured out what i was doing wrong...i needed to set the update panel to conditional and not always...i must of overlooked that part in the example.
Thanks
Tags
Scheduler
Asked by
Ben
Top achievements
Rank 1
Answers by
Peter
Telerik team
Ben
Top achievements
Rank 1
Share this question
or