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

OnClientLoad

The load event occurs when the RadImageButton client-side object is instantiated on the page.

The event handler receives two parameters:

  1. The instance of the loaded RadImageButton control.

  2. An empty event args.

This event comes handy in scenarios when the user wants to operate with the control's client-side API and events at the earliest available stage.

Example 1: Handling RadImageButton OnClientLoad event.

<script type="text/javascript">
    function clientLoad(sender, args) {
        alert('RadImageButton Object Loaded');
    }
</script>
<telerik:RadImageButton ID="RadImageButton1" runat="server" Text="Submit" OnClientLoad="clientLoad">
</telerik:RadImageButton>

See Also

In this article