RadChat : Remove all messages

2 Answers 62 Views
Chat (Conversational UI)
Thomas
Top achievements
Rank 1
Iron
Thomas asked on 17 Aug 2023, 02:36 PM

Hello, 

I would like to remove all messages of radchat after inactivity.

I don't find how to remove all messages. Could you help me ?

Thanks

Thomas

2 Answers, 1 is accepted

Sort by
1
Stenly
Telerik team
answered on 18 Aug 2023, 05:24 PM

Hello Thomas,

To achieve this requirement, the collection that is bound to the DataSource property of the RadChat control could be cleared using the Clear method.

<telerik:RadChat CurrentAuthor="{Binding CurrentAuthor}" DataSource="{Binding MyMessages}">
    <telerik:RadChat.MessageConverter>
        <local:MessageConverter />
    </telerik:RadChat.MessageConverter>
</telerik:RadChat>
this.Messages.Clear();

With this being said, I have attached a sample project for you to test.

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Thomas
Top achievements
Rank 1
Iron
answered on 22 Aug 2023, 04:42 PM
Thanks a lot.
Tags
Chat (Conversational UI)
Asked by
Thomas
Top achievements
Rank 1
Iron
Answers by
Stenly
Telerik team
Thomas
Top achievements
Rank 1
Iron
Share this question
or