Display One image per next button click

3 posts, 0 answers
  1. Harah Day
    Harah Day avatar
    7 posts
    Member since:
    Nov 2009

    Posted 03 Jan 2010 Link to this post

    Hi there,

      I'm using Rotator control to display image gallery with RotatarType="Button". On button click I want to display next image.
    All the images are of same size but when i click on Next button i see only half of the image displayed. I want to show 1 image on each
    click. Is it possible using Rotator control ?

    Here are my code.

                        <telerik:RadRotator ID="RadRotator1" runat="server" Width="400" Height="300" ItemWidth="400" ItemHeight="300"
                                <div class="itemTemplate">
                                    <img src="<%# DataBinder.Eval(Container.DataItem, "Image") %>"
                                         alt="<%# DataBinder.Eval(Container.DataItem, "Name") %>" />

            Dim rotatorData As New DataTable()
            For Each tempInfo As fileInfo In imagesArray
                rotatorData.Rows.Add(New String() {tempInfo.filename, tempInfo.name})
            RadRotator1.DataSource = rotatorData

    Attached jpg file shows two images at one time.

  2. Fiko
    Fiko avatar
    1406 posts

    Posted 06 Jan 2010 Link to this post

    Hello Ranga,

    The solution for this behavior is described in this KB article. Could you please apply the steps described in the article and let me know the result?

    I hope this helps.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Harah Day
    Harah Day avatar
    7 posts
    Member since:
    Nov 2009

    Posted 06 Jan 2010 Link to this post

    Hi Fiko, Thanks for quick response and it worked.
Back to Top