I'm currently working with the RadTooltipManager to be able to click on a thumbnail and display a larger portion of the image positioned at the center of the browser window. It is currently working in every browser except in "QuirksMode" in InternetExplorer. When using QuirksMode, the image is placed at the verybottom of the screen. Any idea why this issue is happening or any advice on how to resolve it? See attached images for clarification and understanding, below are snippets of my code.
<
telerik:RadToolTipManager
ID
=
"RadToolTipManager1"
runat
=
"server"
Width
=
"400"
Height
=
"400"
Enabled
=
"true"
Modal
=
"true"
OnAjaxUpdate
=
"RadToolTipManager1_AjaxUpdate"
ShowEvent
=
"OnClick"
HideEvent
=
"ManualClose"
RelativeTo
=
"BrowserWindow"
Position
=
"Center"
></
telerik:RadToolTipManager
>
protected
void
PictureGrid_DataBound(
object
sender, RadListViewItemEventArgs e)
{
if
(e.Item
is
RadListViewDataItem)
{
int
position = ((RadListViewDataItem)e.Item).DataItemIndex;
((RadTextBox)e.Item.FindControl(
"ThumbnailCaptionTextbox"
)).Text = FindCurrentEntry().Attachments.ElementAt(position).Caption;
Image image = (Image)e.Item.FindControl(
"ThumbnailImage"
);
image.ImageUrl =
"../ImageViewer.ashx?fileId="
+ PictureGridData.ElementAt(position).Key +
"&sizeType=thumbnail"
;
RadToolTipManager1.TargetControls.Add(image.ClientID,
true
);
}
}
protected
void
RadToolTipManager1_AjaxUpdate(
object
sender, ToolTipUpdateEventArgs e)
{
Image image =
new
Image();
bool
found =
false
;
for
(
int
i = 0; ((i < PictureGrid.Items.Count) && (!found)); i++)
{
for
(
int
j = 0; ((j < PictureGrid.Items[i].Controls.Count) && (!found)); j++)
{
if
(e.TargetControlID == PictureGrid.Items[i].Controls[j].ClientID)
{
image.ImageUrl =
"../ImageViewer.ashx?fileId="
+ PictureGridData.ElementAt(i).Key +
"&sizeType=larger"
;
found =
true
;
}
}
}
e.UpdatePanel.ContentTemplateContainer.Controls.Add(image);
}