Tooltip not working with GUID as primary key

2 posts, 0 answers
  1. Susan
    Susan avatar
    137 posts
    Member since:
    Jul 2007

    Posted 31 May 2013 Link to this post

    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.


    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)


    '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


  2. Plamen
    Plamen avatar
    3079 posts

    Posted 05 Jun 2013 Link to this post

    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. 

    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.
Back to Top