Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
850
Display index of the image displayed by WebImageViewer
posted

Hi,

I am new to Infragistics.

I am using WebImageViewer to display a set of images.  I have defined a client side method for starting a timer and to navigate to next image so that a Slide Show can be simulated. I have a requirement where, I need to display the index of the image that is being displayed by WebImageViewer.  Please help me with a way it can be achieved.

Here is the code :

<ig:WebImageViewer ID="iv1" runat="server" Height="100%" Width="1000px"

            EnableDragScrolling="False" EnableInitialFadeAnimation="true" 

            ScrollAnimations-Type="NextItem">            

</ig:WebImageViewer>        

 <asp:ImageButton ID="playButton" value="Play" runat="server" OnClientClick="SlideShow()"         ImageUrl="~/play.png"/>

function SlideShow() {

            var viewer = $find("iv1");

            viewer.navigateNext();

}