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

Recurring Appointment with RadToolTip Manager

4 Answers 80 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 2
David asked on 06 May 2008, 06:51 PM
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

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 12 May 2008, 01:05 PM
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
0
Martin Gartmann
Top achievements
Rank 2
answered on 01 Jun 2008, 05:26 PM
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
0
Peter
Telerik team
answered on 02 Jun 2008, 02:08 PM
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
0
Martin Gartmann
Top achievements
Rank 2
answered on 06 Jun 2008, 03:56 PM
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
Tags
Scheduler
Asked by
David
Top achievements
Rank 2
Answers by
Peter
Telerik team
Martin Gartmann
Top achievements
Rank 2
Share this question
or