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

Declarations in DNN

1 Answer 46 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 21 May 2008, 01:41 PM
I have a DNN module using Scheduler.  In my imports I have:

Imports

Telerik.Web.UI

    Protected Sub RadScheduler1_AppointmentCreated(ByVal sender As ObjectByVal e As Telerik.Web.UI.AppointmentCreatedEventArgs) Handles RadScheduler1.AppointmentCreated  
        If (e.Appointment.Visible _  
    AndAlso Not IsAppointmentRegisteredForTooltip(e.Appointment)) Then 
            RadToolTipManager1.TargetControls.Add(e.Appointment.ClientID, True)  
        End If 
 
    End Sub 

I get the error msg the name IsAppointmentRegisteredForTooltip is not declared.  What's missing?
Thank you.
Karl

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 23 May 2008, 04:33 PM
Hi Karl,

Have you defined the follwing function in code-behind:
Private Function IsAppointmentRegisteredForTooltip(ByVal apt As Appointment) As Boolean 
            For Each targetControl As ToolTipTargetControl In RadToolTipManager1.TargetControls  
                If (targetControl.TargetControlID = apt.ClientID) Then 
                    Return True 
                End If 
            Next 
            Return False 
        End Function 
 

?

You can also try without the "IsAppointmentRegisteredForTooltip" check and see if you will experience problems.



Best wishes,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Karl
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or