I have a radtooltip that I am creating programmaticly void radToolTip_DataBinding(object sender, EventArgs e)
However, when I run my page, and hover for the tooltip, the div containing the control image I added is showing "display:none;".
All this is being done using a CustomTemplate Class that renders on a GridTemplateColumn on a radgrid.
I just need the image to show up inside the tooltip! Any help would be appreciated.
void
radToolTip_DataBinding(
object
sender, EventArgs e)
{
System.Web.UI.WebControls.Image i =
new
System.Web.UI.WebControls.Image();
i.ID =
"toolTipImage"
;
i.Height = 600;
i.Width = 800;
RadToolTipManager r = (RadToolTipManager)sender;
r.ID =
"radToolTip"
;
radToolTip.TargetControls.Add(image.ClientID,
true
);
GridDataItem container = (GridDataItem)r.NamingContainer;
r.Animation = ToolTipAnimation.FlyIn;
r.RelativeTo = ToolTipRelativeDisplay.Element;
i.ImageUrl = ((DataRowView)container.DataItem)[colname].ToString();
r.Text = i.ImageUrl.ToString();
r.Title = ((DataRowView)container.DataItem)[
"Description"
].ToString();
r.Controls.Add(i);
}
However, when I run my page, and hover for the tooltip, the div containing the control image I added is showing "display:none;".
<
div
id
=
"ctl00_MainPlaceHolder_SummaryGrid_ctl00_ctl14_radToolTip"
style
=
"display:none;position:absolute;"
>
<
div
id
=
"ctl00_MainPlaceHolder_SummaryGrid_ctl00_ctl14_eflyerTooltipRTMPanel"
style
=
"display: block;"
> </
div
>
<
img
id
=
"ctl00_MainPlaceHolder_SummaryGrid_ctl00_ctl14_toolTipImage"
style
=
"height:600px;width:800px;"
src
=
"http://www.fakebutcorrecturl.jpg"
>
<
input
id
=
"ctl00_MainPlaceHolder_SummaryGrid_ctl00_ctl14_radToolTip_ClientState"
type
=
"hidden"
name
=
"ctl00_MainPlaceHolder_SummaryGrid_ctl00_ctl14_radToolTip_ClientState"
>
</
div
>
All this is being done using a CustomTemplate Class that renders on a GridTemplateColumn on a radgrid.
I just need the image to show up inside the tooltip! Any help would be appreciated.