The RadToolTipManager control introduces OnClientResponseEnd
event which gets fired immediately after the response from a WebService or an AJAX
request is performed. This provides an opportunity to make changes just before the
content of the tooltip is displayed. The sender in the event parameters is the RadToolTipManager
control and therefore the active tooltip should be
referenced by using the client-side API as shown below:
function
OnClientResponseEnd(sender, args) {
//NOTE: The sender is the RadToolTipManager
var
current = Telerik.Web.UI.RadToolTip.getCurrent();
if
(current) {
current.set_modal(
false
);
}
}
This example demonstrates one simple usage of this event - it makes the tooltip
modal while person's details are examined and this prevents the user to edit the
person's details meanwhile which would lead to incorrect information and additional
problems.
Updated: The example shows also the new OnClientRequestStart event
which is fired when the call to the WebService or the AJAX request starts. The event
is cancelable so you can cancel the call after first show and use the cached content
if no new call is needed. The control also now supports OnClientResponseError
event which is used to control the behavior when an error has occured
Click on the person's photo to view his/her details: