I'm having problems getting my tooltip to hide on mouseout. Its setup like this...
I tried adding tooltip.set_hideEvent(Telerik.Web.UI.ToolTipHideEvent.Default); to the JS function, but it didnt work. I created a test page with just the element and tooltip and found that if I changed the ShowEvent to onMouseOver and it works properly. How do I get this functionality using my JS function or an additional attribute in the tooltip?
<
rad:RadToolTip
ID
=
"radShoppingCartMainTT"
runat
=
"server"
ShowEvent
=
"FromCode"
IsClientID
=
"true"
Sticky
=
"false"
AutoCloseDelay
=
"10000"
Position
=
"BottomLeft"
RelativeTo
=
"Element"
OffsetY
=
"2"
Height
=
"500px"
Width
=
"320px"
Skin
=
"Default"
ContentScrolling
=
"Y"
Title
=
""
>
Content
</
rad:RadToolTip
>
<
span
runat
=
"server"
id
=
"lnkTT"
onmouseover
=
"showTT(this); return false;"
></
span
>
function
showtTT(trigger)
{
var
tooltip = $find(
"TT"
);
if
(tooltip !=
null
)
{
tooltip.set_targetControl(trigger);
tooltip.show();
}
}
I tried adding tooltip.set_hideEvent(Telerik.Web.UI.ToolTipHideEvent.Default); to the JS function, but it didnt work. I created a test page with just the element and tooltip and found that if I changed the ShowEvent to onMouseOver and it works properly. How do I get this functionality using my JS function or an additional attribute in the tooltip?