Hello,
I am attempting to display appoinment information in a radtooltip and am running into a strange problem.
First off, I am using the Scheduler's AppointmentCreated event to dynamically create the tooltips:
Nothing to fancy here and everything at this point works like a charm.
The problem starts when I start adding controls to the tooltip control collection:
Basically, when I start adding controls to the tooltip control collection, instead of poping up normally, the tooltip pops up inside what I believe is the appointment container (appointment div?). If I knew how to attach files I would include a screenshot of what I am talking about.
Please let me know what you find. Also, please provide me with a server side solution as this simple example is only the tip of the iceberg of what I need to do.
If you need more information I will try to provide a better description of the problem.
Thank you.
I am attempting to display appoinment information in a radtooltip and am running into a strange problem.
First off, I am using the Scheduler's AppointmentCreated event to dynamically create the tooltips:
protected void Scheduler_AppointmentCreated(object sender, AppointmentCreatedEventArgs e) |
{ |
RadToolTip tooltip = new RadToolTip(); |
tooltip.ID = "tooltip"; |
tooltip.TargetControlID = e.Appointment.ClientID; |
tooltip.IsClientID = true; |
tooltip.Animation = ToolTipAnimation.Resize; |
tooltip.Sticky = true; |
tooltip.ContentScrolling = ToolTipScrolling.Auto; |
tooltip.RelativeTo = ToolTipRelativeDisplay.Mouse; |
StringBuilder sb = new StringBuilder(); |
sb.AppendFormat(e.Appointment.Subject); |
sb.Append(" "); |
sb.AppendFormat("{0}{1}{2}", e.Appointment.Start.ToShortTimeString(), " - ", |
e.Appointment.End.ToShortTimeString()); |
e.Appointment.ToolTip = string.Empty; |
tooltip.Text = "Something wonderful!"; |
e.Container.Controls.Add(tooltip); |
} |
Nothing to fancy here and everything at this point works like a charm.
The problem starts when I start adding controls to the tooltip control collection:
protected void Scheduler_AppointmentCreated(object sender, AppointmentCreatedEventArgs e) |
{ |
RadToolTip tooltip = new RadToolTip(); |
tooltip.ID = "tooltip"; |
tooltip.TargetControlID = e.Appointment.ClientID; |
tooltip.IsClientID = true; |
tooltip.Animation = ToolTipAnimation.Resize; |
tooltip.Sticky = true; |
tooltip.ContentScrolling = ToolTipScrolling.Auto; |
tooltip.RelativeTo = ToolTipRelativeDisplay.Mouse; |
StringBuilder sb = new StringBuilder(); |
sb.AppendFormat(e.Appointment.Subject); |
sb.Append(" "); |
sb.AppendFormat("{0}{1}{2}", e.Appointment.Start.ToShortTimeString(), " - ", |
e.Appointment.End.ToShortTimeString()); |
e.Appointment.ToolTip = string.Empty; |
Button button = new Button(); |
button.ID = "btnA"; |
button.Text = "Button in a ToolTip"; |
tooltip.Controls.Add(button); |
e.Container.Controls.Add(tooltip); |
} |
Basically, when I start adding controls to the tooltip control collection, instead of poping up normally, the tooltip pops up inside what I believe is the appointment container (appointment div?). If I knew how to attach files I would include a screenshot of what I am talking about.
Please let me know what you find. Also, please provide me with a server side solution as this simple example is only the tip of the iceberg of what I need to do.
If you need more information I will try to provide a better description of the problem.
Thank you.