replyToIdFieldString(default: "replyToId")

Specifies the field name in the data source that contains the ID of the message being replied to.

Example

<div id="chat"></div>
<script>
let messagesData = [
    { 
        id: 1, 
        text: "Hello!", 
        authorId: "user1", 
        authorName: "John",
        timestamp: new Date() 
    },
    { 
        id: 2, 
        text: "Hi there!", 
        authorId: "user2", 
        authorName: "Jane",
        parentMessageId: 1,
        timestamp: new Date() 
    }
];

$("#chat").kendoChat({
    replyToIdField: "parentMessageId",
    dataSource: messagesData
});
</script>
In this article
replyToIdField
Not finding the help you need?
Contact Support