Hi, I have two issues that are occurring in different browsers (and not in some others). Im Using Q2 2012. I have a RadGrid containing an hyperlink column where I add dynamically in code-behind a RadTooltip (containing an image) on some conditions.
Browser versions: Chrome Version 23.0.1271.95 m , Safari for Windows 5.1.7 (7534.57.2) , Opera 12.02 (Build 1578) , Firefox 16.0.2, IE8.
Issue #1 (occuring in Chrome , Safari and Opera but not in Firefox and IE8):
When clicking quickly (not letting time to tooltip to show) on the hyperlink, it opens the image in a new browser window (no problem so far). When I come back to my original page, the tooltip image is shown (but it shouldnt). In Chrome and Safari, this doesnt occur if we click on the link and quickly move the cursor off the hyperlink (before the new page loads), but it is still annoying for users (note that tooltip should only appear after being hovering the link for 1 sec).
Issue #2 (occuring only in Chrome): when tooltip image is shown and hyperlink in low in browser screen, pop-up is not located where we can fully see it. All other browsers seem to adjust the popping location of the tooltip so we dont have to scroll down to see it (or minimal scroll is required).
maybe those issues are browser limitations, but Im just making sure. Or maybe Q3 2012 has these already resolved?
RadGrid column:
Tooltip setup:
TooltipManager definition:
Browser versions: Chrome Version 23.0.1271.95 m , Safari for Windows 5.1.7 (7534.57.2) , Opera 12.02 (Build 1578) , Firefox 16.0.2, IE8.
Issue #1 (occuring in Chrome , Safari and Opera but not in Firefox and IE8):
When clicking quickly (not letting time to tooltip to show) on the hyperlink, it opens the image in a new browser window (no problem so far). When I come back to my original page, the tooltip image is shown (but it shouldnt). In Chrome and Safari, this doesnt occur if we click on the link and quickly move the cursor off the hyperlink (before the new page loads), but it is still annoying for users (note that tooltip should only appear after being hovering the link for 1 sec).
Issue #2 (occuring only in Chrome): when tooltip image is shown and hyperlink in low in browser screen, pop-up is not located where we can fully see it. All other browsers seem to adjust the popping location of the tooltip so we dont have to scroll down to see it (or minimal scroll is required).
maybe those issues are browser limitations, but Im just making sure. Or maybe Q3 2012 has these already resolved?
RadGrid column:
<
telerik:GridTemplateColumn
HeaderText
=
""
UniqueName
=
"strFieldValue"
HeaderStyle-Width
=
"75%"
Resizable
=
"true"
Reorderable
=
"true"
>
<
ItemTemplate
>
<
asp:HyperLink
ID
=
"hl"
Target
=
"_blank"
runat
=
"server"
Text='<%# Eval("LinkResource")%>' NavigateUrl='<%# Eval("LinkValue")%>'></
asp:HyperLink
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
Conditional Tooltip assignation
when data are bound:protected
void
RadGrid2_OnItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
{
Control HyperLink = e.Item.FindControl(
"hl"
);
if
(((DTO)e.Item.DataItem).LinkValue !=
""
&& ((DTO)e.Item.DataItem).blnIsImage)
{
this
.RadToolTipManager1.TargetControls.Add(HyperLink.ClientID, ((DTO)e.Item.DataItem).LinkValue,
true
);
}
}
}
Tooltip setup:
protected
void
RadToolTipManager_OnAjaxUpdate(
object
sender, ToolTipUpdateEventArgs args)
{
UpdateToolTip(args.Value, args.UpdatePanel, Page);
}
public
void
UpdateToolTip(
string
strVal, UpdatePanel panel, System.Web.UI.Page pg)
{
Control ctrl = pg.LoadControl(
"ucTooltipContainer.ascx"
);
panel.ContentTemplateContainer.Controls.Add(ctrl);
ucTooltipContainer details = (ucTooltipContainer)ctrl;
if
(strVal !=
""
)
{
details.SetImage(strVal);
}
}
public
void
SetImage(
string
strPath)
{
TooltipImage.ImageUrl = strPath;
}
TooltipManager definition:
<
telerik:RadToolTipManager
runat
=
"server"
ShowDelay
=
"1000"
AutoCloseDelay
=
"0"
ID
=
"RadToolTipManager1"
RelativeTo
=
"Element"
Position
=
"MiddleRight"
OnAjaxUpdate
=
"RadToolTipManager_OnAjaxUpdate"
Skin
=
"WebBlue"
HideEvent
=
"LeaveTargetAndToolTip"
Width
=
"480px"
Height
=
"227px"
>
</
telerik:RadToolTipManager
>