This is a migrated thread and some comments may be shown as answers.

Change position MessageElement & add list message

1 Answer 120 Views
Conversational UI, Chat
This is a migrated thread and some comments may be shown as answers.
Hai
Top achievements
Rank 1
Hai asked on 01 Aug 2019, 06:23 AM
I want to change position MessageElement when I want to do it. When I load old message, I only load about 30 message element, then when I scroll to last message I will load 30 next message.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 05 Aug 2019, 01:05 PM
Hello, Hai, 

You can use the RadChat.AddMessage method and load as many messages as you wish. Please refer to the following help article demonstrating how to add messages: https://docs.telerik.com/devtools/winforms/controls/chat/chat-items/messages

It is possible to handle the ChatElement.MessagesViewElement.VScrollBar.ValueChanged event and detect when you scroll the vertical scrollbar. Then, you add the messages you want.

I hope this information helps.

Regards,
Dess | Tech Support Engineer, Sr.
Progress TelerikRadChat for Winforms
Tags
Conversational UI, Chat
Asked by
Hai
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or