resendMessage
Fired when the user clicks the retry button on a failed message. Use this event to re-attempt message delivery.
Event Data
e.sender kendo.ui.Chat
The widget instance which fired the event.
e.message Object
The failed message data object that the user wants to resend.
Example
<div id="chat"></div>
<script>
let messagesData = [
{
id: 1,
text: "This message failed to send.",
authorId: "user1",
authorName: "John",
timestamp: new Date(),
status: "failed",
failed: true
}
];
$("#chat").kendoChat({
authorId: "user1",
dataSource: messagesData,
resendMessage: function(e) {
console.log("Resending message:", e.message.text);
}
});
</script>