Im starting to use the tooltip for the first time and have placed a tooltipmanager on my form. Ive got the whole thing to work ok, its just that sometimes, when the tooltip initially appears, it displays in the far left of the page,then jumps over to the control that activated it. How can I give the popup a consistent position ?
this is the code
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"
AutoTooltipify="True" Skin="Sunset" OnAjaxUpdate="OnAjaxUpdate" Animation="Fade" RelativeTo="Mouse" HideEvent="LeaveToolTip">
</telerik:RadToolTipManager>
in my c# I have several images that activate different popups
this.RadToolTipManager1.TargetControls.Add(this.ImageGuarantee.ClientID, "Guarantee", true);
this.RadToolTipManager1.TargetControls.Add(this.ImageWhy.ClientID, "Why", true);
this.RadToolTipManager1.TargetControls.Add(this.ImageVIP.ClientID, "VIP", true);
protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
{
this.UpdateToolTip(args.Value, args.UpdatePanel);
}
private void UpdateToolTip(string elementID, UpdatePanel panel)
{
Control ctrl = Page.LoadControl("~/UserControls/PopupNarrative.ascx");
panel.ContentTemplateContainer.Controls.Add(ctrl);
UserControls.PopupNarrative pn = (UserControls.PopupNarrative)ctrl;
pn.PopupNarrativeType = elementID;
}
Ive tried setting it to relative to element, but it makes no difference