Recurring Appointment with RadToolTip Manager

5 posts, 0 answers
  1. David
    David avatar
    20 posts
    Member since:
    Oct 2007

    Posted 06 May 2008 Link to this post

    Hello,

    I'm trying to get the RadToolTipManager to show a ToolTip no matter what part of the appointment they click on in the Scheduler.  For example, I have an appointment that spans for 5 days Monday through Friday.  The only time the RadToolTip fires is when they click on the starting day of the appointment in month view.  It will come up for Monday, but not Tuesday, Wednesday, etc. 

    I think it's because only the first instance is added to the TargetControls.  Is there any way to get the other days to show the RadToolTipManager when clicked on?

    Thanks,
    David
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 12 May 2008 Link to this post

    Hi David,

    We tested the Using RadToolTip example with recurrent appointments, but we couldn't reproduce this problem. We replaced the session datasource with an SQL datasource for the scheduler and created recurrent appoitnments.
     
    Could you please send us the code of your implementation or open a support ticket and send us a small demo project of the issue?


    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Martin Gartmann
    Martin Gartmann avatar
    51 posts
    Member since:
    Apr 2004

    Posted 01 Jun 2008 Link to this post

    Hi David and Peter,

    because i currently have the same problem like david, could you please tell me what the problem was and how to solve. seems that i  also happens for appointment who are ending 2 or more days after starting. First cell fires radtooltip, the other's not.

    You can see my projekt live at

    http://www.tdisdi.de/event/radtooltip/defaultvb.aspx

    See july 2008 for example of recurring problem.

    Kind regard

    Martin
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 02 Jun 2008 Link to this post

    Hi Martin,

    With appointments spanning mulitiple days, you need to add the target IDs in the OnPreRender event:
    protected override void OnPreRender(EventArgs e)     
            {     
                foreach (Appointment apt in RadScheduler1.Appointments)     
                {     
                    foreach (AppointmentControl control in apt.AppointmentControls)     
                    {     
                        RadToolTipManager1.TargetControls.Add(control.ClientID, true);     
                    }     
                }     
        
                base.OnPreRender(e);     
            }     
    protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)     
            {     
                if (e.Appointment.Visible && !IsAppointmentRegisteredForTooltip(e.Appointment))     
                {     
                    //RadToolTipManager1.TargetControls.Add(e.Appointment.ClientID, true);     
                }     
            }    
     

    Let us know how it goes.

    All the best,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Martin Gartmann
    Martin Gartmann avatar
    51 posts
    Member since:
    Apr 2004

    Posted 06 Jun 2008 Link to this post

    Dear Peter,

    thank you for pushing me the right way.

    Because i am using vb.net this code solved my issue.


    Protected Overloads Overrides Sub OnPreRender(ByVal e As EventArgs)   
        For Each apt As Appointment In RadScheduler1.Appointments   
            For Each control As AppointmentControl In apt.AppointmentControls   
                RadToolTipManager1.TargetControls.Add(control.ClientID, True)   
            Next   
        Next   
          
        MyBase.OnPreRender(e)   
    End Sub   
    Protected Sub RadScheduler1_AppointmentCreated(ByVal sender As Object, ByVal e As AppointmentCreatedEventArgs)   
                'RadToolTipManager1.TargetControls.Add(e.Appointment.ClientID, true);   
        If e.Appointment.Visible AndAlso Not IsAppointmentRegisteredForTooltip(e.Appointment) Then   
        End If   
    End Sub   
     

    Have a nice weekend

    Martin
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017