I'm currently trying to integrate the RadToolTipManager with the RadScheduler so that the appointment pops up with the default information and custom resources from the RadScheduler. I've gotten that to work, but now everything tries to open a radtooltip, not just the scheduler. I put in the RadScheduler in the TargetControls Collection and that solved the problem of everything having a tooltip, but now I can't retrieve the appointment information.
Here is the code I use to retrieve the appointment and it's info.
SelectedAppt successfully gets the index of the item from position 4 in the array, however when insert the scheduler as a target control the TargetControlID only has the name without any other info.
Is there a different way to give the Radscheduler ToolTips without having everything trying to use the RadToolTipManager?
protected
void RadToolTipManager1_AjaxUpdate(object sender, ToolTipUpdateEventArgs e)
{
try
{
char[] splitters = { '_' };
string[] SelectedAppt = (e.TargetControlID.Split(splitters));
int aptIndex = Convert.ToInt32(SelectedAppt[4]);
Appointment apt = RadScheduler1.Appointments[aptIndex];
AppointmentToolTip tooltip = LoadControl("AppointmentToolTip.ascx") as AppointmentToolTip;
tooltip.TargetAppointment = apt;
RadToolTipManager1.Visible =
true;
e.UpdatePanel.ContentTemplateContainer.Controls.Add(tooltip);
}
catch (Exception ex)
{
}
}
Thanks,
-David