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


The OnClientLoad client-side event occurs after the RadRotator loads on the page.

The event handler receives two parameters:

  1. The RadRotator instance that fired the event.

  2. Event arguments. The parameter has no methods for this event.

This event can be used for executing custom code when the RadRotator is loaded. The example below sets the ScrollDuration of the rotator control to 500.

<script type="text/javascript">
    function OnClientLoad(sender, eventArgs) {
<telerik:RadRotator RenderMode="Lightweight" ID="RadRotator1" runat="server" ScrollDirection="Left" Height="113px"
    ItemHeight="113px" Width="150px" ItemWidth="150px" OnClientLoad="OnClientLoad">
        <img src=".........." alt="" />
In this article