New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Setting Event Handlers via JavaScript

You can use the client-side API of the RadToolTip and RadToolTipManager controls to modify the event handlers they call.

When using the client-side API, pass a reference to the event handler rather than its name. One advantage of using the client-side API is that you can attach multiple event handlers to one event using the standard MS AJAX convention:

JavaScript
function addEvents()
{
    var radToolTip1 = $find("<%= RadToolTip1.ClientID %>");
    radToolTip1.add_show(clientShow1);
    radToolTip1.add_show(clientShow2);
}

Another advantage of the client-side API is that you can detach an event handler dynamically:

JavaScript
function removeEvents()
{
    var radToolTip1 = $find("<%= RadToolTip1.ClientID %>");
    radToolTip1.remove_show(clientShow);
}

A list with the available methods

NameDescription
add_beforeShowAdd a handler to the BeforeShow event.
add_showAdd a handler to the Show event.
add_beforeHideAdd a handler to the BeforeHide event.
add_hideAdd a handler to the Hide event.
remove_beforeShowRemove a handler from the BeforeShow event.
remove_showRemove a handler from the Show event.
remove_beforeHideRemove a handler from the BeforeHide event.
remove_hideRemove a handler from the Hide event.
Not finding the help you need?
Contact Support