On the client side, I'm having trouble retreiving the index from one rotator to assign it to another. I'm clicking on a rotator item to load it in another rotator. I've tried a few things but have been unsuccessful so far. Here's what I've tried:
function itemOnClick_handler(sender, args) { |
$find('<%= ActiveSlide.ClientID %>').InitialItemIndex = args.get_item().get_index(); |
$find('<%= ActiveSlide.ClientID %>').InitialItemIndex = sender.CurrentItemIndex(); |
$find('<%= ActiveSlide.ClientID %>').InitialItemIndex = sender.get_item().get_index(); |
$find('<%= ActiveSlide.ClientID %>').InitialItemIndex = args.get_item().CurrentItemIndex(); |
} |
Are any of the above close? Here's my rotator: |
<telerik:RadRotator ID="ThumbRotator" runat="server" RotatorType="FromCode" Width="628" Height="118px" ItemHeight="118" ItemWidth="157" ScrollDuration="500" FrameDuration="3000" ScrollDirection="Left" PauseOnMouseOver="false"
OnClientItemShowing
="itemShowing_handler" OnClientItemClicked="itemOnClick_handler" > |
<ItemTemplate> |
<div class="itemTemplate"> |
<asp:Label ID="hlnkThumbTitle" runat="server" Font-Names="Arial" Font-Size="XX-Small" Text='<%# DataBinder.Eval(Container.DataItem, "thumbTitle") %>'></asp:Label> <br /> <img src='<%# DataBinder.Eval(Container.DataItem, "thumbImage") %>' alt='<%# DataBinder.Eval(Container.DataItem, "thumbTitle") %>' class="RotatorImage" width="85px" height="60" /> |
</div> |
</ItemTemplate> |
<ControlButtons LeftButtonID="img_left" RightButtonID="img_right" /> |
<SlideShowAnimation Type="Fade"></SlideShowAnimation> |
</telerik:RadRotator> |