I am creating a chat page where a user can click on a conversation and the messages from that conversation are loaded to the message box (classic functionality just like iMessage). The problem is that I need the last message in the repeating group to be shown (just like seeing your last message in iMessage instead of the first message you ever sent).
I thought I could solve this problem by using “Scroll to entry” but it’s just not working. Its almost scrolling to the bottom but not quite. Could someone please advise me on how to get “Scroll to entry” to actually go to right place or could someone give me a completely different strategy to achieve my objective?
No idea if this will work, because I’m not sure what’s causing the behaviour. But a quick test could be to just add additional pixels to your scroll. The scroll to entry takes both + and - values as offset. But you’ve probably tried that already.
That’s what my original thought was but I’ve tried adding a pause and even a long one doesn’t help. I’ve also walked through the debugger and I can see that it is getting the correct message element but its just not scrolling to it. Check out the video in my original post to get more context.
But thank you for the reply and I will try out the Chat Plugin you suggested.
I used the RepeatedGroup to Chat Plugin | Bubble and it worked! There’s only one problem. When I scroll up, the chat repeated group scrolls down and vice versa. Basically, my scrolling is backward.
This plugin is particularly useful for building chat elements (think Whatsapp) where at the bottom of the window you see the most recent record and then if you need to go back through messages you scroll upwards.
The direction of the scrolling could be changed in a very simple way:
Please allow us to mention that we have checked the Demo Page and all is working properly.
Make sure that you have changed the scrolling direction here:
In order to be able to help you, can you please let us know what is the issue for your case?
Seems like your scenario works properly. But in case you are looking to implement another option - please let us know.
Currently, you can play around with some options, and namely with the Scrolling direction and the order in which the messages are displayed (ascending and descending).
Please find below some scenarios:
I mean the issue is, is that I want my RG to scroll from bottom to top on Either Ext. Vertical scrolling or full list and it does not work. The only way it works is wehen the RG is vertical scrolling but in my case the RG needs to be either Ext. Vertical scrolling or full list.