Hello Susan,
You are correct that it is not possible to specify two
ShowEvent options.
By examining your scenario, we believe we were able to come with a workaround that will do the trick in your case - essentially, you need to attach to the onclick event of the target control and cancel the event. Thus - the event will not propagate to the document and cause the "hide tooltip" functionality to execute.
Would you please test whether this code meets your requirements?
<script> |
function cancelEvent(e) |
{ |
if (!e) e = window.event; |
if (!e) return false; |
e.cancelBubble = true; |
e.returnValue = false; |
if (e.preventDefault)e.preventDefault(); |
if (e.stopPropagation)e.stopPropagation(); |
return false; |
} |
</script> |
|
<asp:HyperLink ID="HyperLink1" NavigateUrl="#" onclick="return cancelEvent(event);" runat="server">HyperLink</asp:HyperLink> |
|
<telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="HyperLink1" AutoCloseDelay="4000" HideDelay="4000" >Test content</telerik:RadToolTip> |
Another option is to use two different RadToolTips with different ShowEvent specified in order to simulate the desired behavior.
All the best,
Svetlina
the Telerik team