Approved
Last Updated: 17 Oct 2019 10:32 by ADMIN
robin
Created on: 10 Oct 2019 09:22
Category: ConversationalUI
Type: Bug Report
0
RadChat ScrollTo and AutoScrollMode:Always doesn't work on IOS

We have implemented chat functionality using Telerik RadChat component. The problem is that the scroll functionality doesn't scroll fully to the bottom on IOS. It randomly stops somewhere in between. The same code runs perfectly on Android. Below I have attached an example code of our solution.


<telerikConversationalUI:RadChat 
          BackgroundColor="White" 
          Grid.Row="1" 
          x:Name="chat" 
          Author="{Binding Me}"
          ItemsSource="{Binding Items}"
          AutoScrollMode="Always"
          ItemConverter="{StaticResource SimpleChatItemConverter}" 
          SendMessageCommand="{Binding NewMessageCommand}"
          ItemTemplateSelector="{StaticResource CustomChatItemTemplateSelector}"
          SendMessageButtonImage="ic_send_green">
</telerikConversationalUI:RadChat>
3 comments
ADMIN
Yana
Posted on: 17 Oct 2019 10:32

Hi Robin,

Thank you for providing the additional details.

I confirm this is an issue in the Chat control and especially in the used ChatListView, so I've updated the status of the bug report to "Approved".  You can follow this item in order to receive an email notifications on status changes. I've also updated your points for the detailed report.

I am afraid I could't find a feasible workaround to this issue, I hope it is not a major show-stopper for you.

Let me know if I can assist with anything else.

Regards,
Yana
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
robin
Posted on: 16 Oct 2019 09:19

Hi Yana,

I have managed to zero in on the offending row. I have attached two files, one were the scroll does not work and another were it works. The image is loaded from a database and stored in a byte array. It is then put into a memory stream which is then bound as seen in the image. I have also tested changing the size of the image but it does not change the result.

I have also attached an image showing how it looks after the scroll stops mid scrolling. I simply opened the page with the chat, you could the the chat being populated by the messages taken from the database, then it started scrolling down like it should but it stops before it gets to the bottom. Note that I can still manually scroll up and down without a problem.

In regards to the other bug report, the amount of messages does not seem to have an effect. It is right now loading in a maximum of 50 messages. 

ADMIN
Yana
Posted on: 14 Oct 2019 11:07

Hi Robin,

I am not able to reproduce the mentioned scrolling issue using the provided snippet.  I've also tested AutoScrollMode in our QSF application Chat demos (Travel Assistance, for example) and the scrolling is working properly on my side. 

Could you please describe the erroneous behavior you've observed as well as the exact scenario in more details?

You could also take a look at this bug report:  https://feedback.telerik.com/xamarin/1366535-chat-does-not-autoscroll-to-bottom-on-initial-load-when-there-are-more-messages

Although the representation is different, it seems it concerns the same scrolling issue.

I look forward to your reply.

Regards,
Yana
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items