Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

How to scroll and select client side

Last post 06-26-2008 21:09 by [Infragistics] Stephen Zaharuk. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-26-2008 19:12

    How to scroll and select client side

    Hi. How can i scroll to an image and select it using javascript?

     I tried using

    var iv2 = $find("<%=WebImageViewer2.ClientID %>");

    iv2.set_selectedItem(index);

     but it doesn't scroll to image. Is it possible to achieve this?

     Greetings

    • Post Points: 20
  • 06-26-2008 21:09 In reply to

    Re: How to scroll and select client side

    There is a sample in our samples browser that shows exactly how to do this:

     http://samples.infragistics.com/2008.2/webfeaturebrowser/default.htm

    Under Aikido/WebImageViewer: Both the "Customizing the Header" and "Client-Side Events" samples use this method:

     

    var item = imageViewer.get_items().getItem(  4 );

    imageViewer.get_scrollAnimations().get_nextItemAnimation().moveItemIntoFocus(item);

    The code above shows how to scroll the 5th item into view.

    Hope this helps:

    -SteveZ

    • Post Points: 5
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems