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

Clear chat history/ conversation

2 Answers 110 Views
Conversational UI, Chat
This is a migrated thread and some comments may be shown as answers.
Jacob
Top achievements
Rank 1
Jacob asked on 09 Oct 2018, 04:47 PM

Hi,

I'm currently populating chat history when a forum opens. I want to have a button that clears the chat window and gets the latest conversation. I'm not finding a way to clear the message history however. If you happen to have some direction that would be great. 

Thanks for the assistance in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 10 Oct 2018, 10:57 AM
Hi Jacob,

Thank you for writing.

The entire chat conversation can be cleared by hiding the overlay, suggested actions and the actual messages: 
this.radChat1.HideOverlay();
this.radChat1.ChatElement.SuggestedActionsElement.ClearActions();
this.radChat1.ChatElement.MessagesViewElement.Items.Clear();
You can hide the overlay, suggested actions and the actual messages this way: 
I hope this helps.

Regards,
Hristo
Progress TelerikRadChat for Winforms
0
Manahil
Top achievements
Rank 1
answered on 18 Jan 2019, 05:33 PM
I think Hristo is right but I have one question that how can I implement this?
Tags
Conversational UI, Chat
Asked by
Jacob
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Manahil
Top achievements
Rank 1
Share this question
or