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

OnClientBeforeShow

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.

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

See Also

In this article
See Also
Not finding the help you need?
Contact Support