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
295
How to prevent gallery preview from scrolling?
posted

Is there a way to prevent the gallery preview from scrolling when an item is selected? I currently have a gallery with 4 items layed out in a 2x2 fashion, and when the user click one of the lower two items, the preview scrolls to bring that item to the top. Is there a way to prevent this behavior?

 Alternately is there a way to force the preview to scrol back so that the first items are visible? Like the user in this post, the BringIntoView does not work for me with  v8.2.

 Thanks,

Beardo

  • 44743
    posted

    There is no way to prevent the item from scrolling into view in the preview. However, I was able to get the first item to scroll back into view. You are correct: if you handle the GalleryToolItemClick event, BringIntoView will not work. That is because the event is fired and then BringIntoView is called internally to bring the clicked item into view. You must use BeginInvoke to call a method that will bring the first preview item back into view. I can see the justification for this being a bug and the order of things should probably be fixed so BringIntoView can be used directly from a GalleryToolItemClick event handler. You can submit the issue to the support group: http://es.infragistics.com/gethelp.

  • 295
    posted

     Anybody?