New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnClientRequestStart
The OnClientRequestStart event is fired when the call to the WebService or the AJAX request starts. The event is cancellable and receives the following parameters:
-
The RadToolTipManager instance that fired the event. Note that this is not the tooltip that is being shown, this reference should be obtained via the static
getCurrent()
method of the class. -
Event arguments - this object exposes the
set_cancel()
method that can be used to prevent the request.
ASP.NET
<script type="text/javascript">
function OnClientRequestStart(sender, args)
{
var current = Telerik.Web.UI.RadToolTip.getCurrent();
if (toCancel)
{
args.set_cancel(true);
}
else if (current)
{
current.set_modal(true);
}
}
</script>
<telerik:RadToolTipManager RenderMode="Lightweight" ID="RadToolTipManager1" OnClientRequestStart="OnClientRequestStart">
<WebServiceSettings Method="GetToolTipData" Path="ToolTipWebService.asmx" />
</telerik:RadToolTipManager>