We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Is it possible to update a message that is already in the UI?

I want to be able to stream text into the response rather than just dump the whole content in one. 

Is this possible? 


3 Replies

DV Diwakar Venkatesan Syncfusion Team May 2, 2023 08:07 AM UTC

Hi Wayne,

We apologize for the delay in responding to your query regarding 'Stream text into the response'. After investigating your request, we believe that what you are looking for is the 'load more' feature for fetching messages in a chat conversation.


You can use the SfChat.LoadMoreBehavior to implement this functionality in your application. This will allow users to scroll to the top of the message list and fetch messages on demand, either automatically or by tapping the 'load more' button.


For more information on how to implement this feature, please refer to our User Guide, which provides detailed instructions and code examples.

UG Link - Load More in Xamarin Chat control | Syncfusion


Regards,

Diwakar



WD Wayne Douglas May 2, 2023 10:01 AM UTC

No this is not correct - I don't want to load more messages - I want to add more to an existing message



DV Diwakar Venkatesan Syncfusion Team May 3, 2023 01:34 PM UTC

Wayne,


We apologize for any inconvenience caused. We would like to inform you that it is possible to update the existing message in the UI. However, this can only be done if you have inherited INotifyPropertyChanged for your view model and raised a PropertyChangedEvent for Message collections.


To help you with this, we’ve attached a simple sample for your reference.


Regards,

Diwakar


Attachment: ChatXamarin_e0ccbb5.zip

Loader.
Up arrow icon