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

[Solved] Clicking on "Show More"

2 Answers 152 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 2
David asked on 30 Apr 2008, 10:49 PM
I have a problem with the RadScheduler.  I have hooked up a RadToolTipManager to the appointments on my Scheduler.  If I have more than 2 appointments in one day and I switch to DayView for that day, the RadToolTipManager will not fire for the appointments that were not listed in the MonthView.  I have an function (below) which fires and adds targetcontrols dynamically based on what is in the Scheduler.  What's happening is that while this adds the appointments listed in the MonthView of the Scheduler to the targetcontrols, the RadToolTipManager doesn't show a modal tool tip for all other appointments not listed in the MonthView of the Scheduler.  It's not until a postback occurs that the appointment shows a modal tool tip window from RadToolTipManager.

I want to have the RadToolTipManager show a tooltip for all appointments for everyday in the Scheduler, not just the first two.  How do I do that?

Thanks,
David

protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)

{

if (blnAllowScheduleAccess == false)

{

//if (e.Appointment.Visible && IsAppointmentRegisteredForTooltip(e.Appointment) == false)

if (IsAppointmentRegisteredForTooltip(e.Appointment) == false)

{

RadToolTipManager1.TargetControls.Add(e.Appointment.ClientID,

true);

}

}

}

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 01 May 2008, 12:40 PM
Hello David,

The AppointmentCreated event fires only for appointents in RadSchedueler's visible range. When you are in Month view, only the first two appointments are visible and if your custom condition is satisfied, they will be added to the TargetControls collection of the RadTooltip manager. When switching views, the AppoinntmentCreated event fires again for each visible appointment, but if you use an ajax manager, you need to add RadTooltip manager in the controls to be updated for RadScheduler. Could you please make sure that this is the case?


Kind regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
David
Top achievements
Rank 2
answered on 01 May 2008, 02:45 PM
Yup, that did it.  I added the code where you told me to and all the appointments now use the radtooltipmanager.  Thanks for your help

<telerik:AjaxSetting AjaxControlID="RadScheduler1">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" />

<telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />

</UpdatedControls>

</telerik:AjaxSetting>


-David
Tags
Scheduler
Asked by
David
Top achievements
Rank 2
Answers by
Peter
Telerik team
David
Top achievements
Rank 2
Share this question
or