Edit this page

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:

  1. 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.

  2. Event arguments - this object exposes the set_cancel() method that can be used to prevent the request.

<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>