Edit this page


The event ItemClicked is subsequent to the ItemClicking (OnClientItemClicking) event and occurs when an item of the RadRotator control is clicked. The event is fired after the client-side validation is completed, just before the page is submitted, and cannot be cancelled.

The event handler receives two parameters:

  1. The RadRotator instance that fired the event.

  2. An eventArgs parameter of type Telerik.Web.UI.RadRotatorEventArgs containing the following properties and methods:

    • get_item() - returns the client object of the clicked item.

This event can be used for executing a custom code when an item of the RadRotator is clicked. The example below demonstrates how to show the index of the currently displayed item.

<script type="text/javascript">
    function OnClientItemClicked(sender, eventArgs) {
        var eventLog = $get("eventLog");
        eventLog.innerHTML = "You clicked an item with index " + eventArgs.get_item().get_index();
<telerik:RadRotator RenderMode="Lightweight" ID="RadRotator1" runat="server" ScrollDirection="Left" Height="113px"
    ItemHeight="113px" Width="150px" ItemWidth="150px" OnClientItemClicked="OnClientItemClicked">
        <img src=".........." alt="" />
<div id="eventLog"></div>
Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article