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

Tooltip not working with GUID as primary key

1 Answer 42 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Susan
Top achievements
Rank 1
Susan asked on 31 May 2013, 06:47 PM
I had this working at one point, and then I added recurrence, using a GUID as my primary key. This all works fine. However, when hovering over the appointment, the tooltip no longer works. If you look at the code below, the 'apt' has 'nothing' in it. The e.Value has the string of the GUID. It appears as if the FindByID is not working with the GUID.

Thanks,
Susan

Dim aptId As Integer

Dim apt As Telerik.Web.UI.Appointment

If Not Integer.TryParse(e.Value, aptId) Then

'The appoitnment is occurrence and FindByID expects a string

apt = RadScheduler1.Appointments.FindByID(e.Value)

Else

'The appointment is not occurrence and FindByID expects an int

apt = RadScheduler1.Appointments.FindByID(aptId)

End If

Dim toolTip As CalendarToolTip = CType(LoadControl("~/CalendarToolTip.ascx"), CalendarToolTip)

toolTip.TargetAppointment = apt

e.UpdatePanel.ContentTemplateContainer.Controls.Add(toolTip)

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 05 Jun 2013, 01:29 PM
Hello Susan,

 
Yes, this is a limitation of this RadScheduler scenario. As a possible workaround you can loop through all the visible appointments and return the one with the required Guid. 

Regards,
Plamen
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Susan
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or