This is a migrated thread and some comments may be shown as answers.

giving a link for each images on Carousel Mode

1 Answer 85 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
adam_right
Top achievements
Rank 1
adam_right asked on 31 Jul 2010, 08:18 AM
hi all,

demo address is:
http://demos.telerik.com/aspnet-ajax/rotator/examples/carouselmode/defaultcs.aspx

in that rotator control with Carousel Mode , can i add click event for each image to send visitors to specific links...
suppose that, there will be 10 product images in rotator  and if the visitor will click any of these pictures, he will go product page.

is it possible ?

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 02 Aug 2010, 06:04 PM
Hi Adam,

Here is the code of RadRotator taken from the Carousel Mode demo:

<telerik:RadRotator ID="RadRotator1" runat="server" Width="810px" ItemWidth="300"
                Height="350px" ItemHeight="220" ScrollDuration="500" FrameDuration="2000"
                PauseOnMouseOver="false" RotatorType="CarouselButtons">
                <ItemTemplate>
                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# Container.DataItem %>' AlternateText="<%# VirtualPathUtility.GetFileName(Container.DataItem.ToString()) %>" />
                </ItemTemplate>
</telerik:RadRotator>


All you need to do is to replace the <asp:Image> server control with for example an <asp:ImageButton> control that will be clickable and load the URL of the selected image in the carousel in new browser window.

Sincerely yours,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Rotator
Asked by
adam_right
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or