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

OnClientClicked

The clicked event is subsequent to the clicking event, and occurs when the RadLinkButton control is clicked. The event cannot be canceled.

The event handler receives two parameters:

  1. The instance of the clicked RadLinkButton control

  2. An eventArgs parameter of type Telerik.Web.UI.ButtonEventArgs.

This event should be used in scenarios where the user needs to execute custom client-side code when the button is clicked. For example:

Example 1: Handling OnClientClicked event in RadLinkButton.

<script type="text/javascript">
    function Clicked(sender, args) {
        window.alert("Page will navigate to '" + sender.get_navigateUrl() + "'");
    }
</script>
<telerik:RadLinkButton ID="RadLinkButton1" runat="server" Text="Navigate to Page" OnClientClicked="Clicked" NavigateUrl="https://www.telerik.com">
</telerik:RadLinkButton>

See Also

In this article