Community X.

Connect with other creators, share ideas, give feedback and get the latest product updates.

Dec 3, 2020

Is there a way to scroll in a container via code?

Hi, I am making a chat system where I have a repeater that is inside of a container to display the messages. I have set the "overflow content" of the container to the "scroll" setting so that when the content of the repeater( the messages) cannot be visualized, a scrollbar appears next to the container and the user can view all of his messages by scrolling up and down.

My problem is that every time the user sends or receives a new message or when he loads some of his previous chats, he has to manually scroll down to see the latest message (which can be quite annoying if you've had a long chat with somebody).

What I would like to achieve is something like "scrollTo" but inside of the container so that I can actually scroll to the latest item in the repeater. Is there such functionality implemented, because I could not find a way to do it.

Thank you in advance!

0 answers0 replies

Editor X

Design your boldest creations.