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

OnClientShowing

The OnClientShowing event occurs just before the notification is shown. This event is cancellable.

The event handler receives the following parameters:

  1. The RadNotification client instance that fired the event.

  2. Event arguments object. Call its set_cancel(true) method to cancel the event.

<telerik:RadNotification RenderMode="Lightweight" runat="server" ID="RadNotification1" VisibleOnPageLoad="true"
    Position="BottomRight" Width="250px" Height="100px"
    OnClientShowing="OnClientShowing" Text="Sample notification text">
</telerik:RadNotification>

<script type="text/javascript">
    function OnClientShowing(sender, eventArgs)
    {
        alert("OnClientShowing event fired by RadNotification with id: " + sender.get_id());
    }
</script>

See Also

In this article