clearReplyState
Clears the current reply state, removing any active reply context.
Example
<div id="chat"></div>
<script>
let messagesData = [
{
id: 1,
text: "This is the original message you can reply to.",
authorId: "user1",
authorName: "John Doe",
authorImageUrl: "https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg",
timestamp: new Date(2026, 0, 1, 9, 0)
},
{
id: 2,
text: "Right-click the message above to reply, then the reply state will be cleared automatically.",
authorId: "user2",
authorName: "Jane Smith",
authorImageUrl: "https://demos.telerik.com/kendo-ui/content/web/Customers/LONEP.jpg",
timestamp: new Date(2026, 0, 1, 9, 5)
}
];
let chat = $("#chat").kendoChat({
authorId: "user2",
dataSource: messagesData
}).data("kendoChat");
// Clear reply state after 3 seconds (if any)
setTimeout(function() {
chat.clearReplyState();
}, 3000);
</script>
In this article