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="http://www.telerik.com">
</telerik:RadLinkButton>

See Also

In this article
Not finding the help you need? Improve this article