New to Telerik UI for ASP.NET AJAX? Download free 30-day trial


The OnClientBeforeShow client-side event occurs just prior to the display of the tool tip. The event can be canceled.

The event handler receives parameters:

  1. The RadToolTip client instance that fired the event.

  2. Event arguments with method:

    • set_cancel(): call this method to cancel the event.

In the example below, when the mouse passes over "Button1", the clientBeforeShow() method calls set_cancel() and the OnClientShow event is prevented from firing.

<script type="text/javascript">
    function clientShow(sender, eventArgs)
        alert("OnClientShow tool tip: " + sender.get_text());
    function clientBeforeShow(sender, eventArgs)
<telerik:RadToolTip RenderMode="Lightweight" ID="RadToolTip1" runat="server" Skin="Inox" TargetControlID="Button1"
    IsClientID="true" OnClientBeforeShow="clientBeforeShow" OnClientShow="clientShow"

See Also

In this article