idFieldString
(default: "id")
Specifies the field name in the data source from which the unique identifier for each message will be read.
Example
<div id="chat"></div>
<script>
let messagesData = [
{
messageId: 1,
text: "Hello!",
authorId: "user1",
authorName: "John",
timestamp: new Date()
}
];
$("#chat").kendoChat({
idField: "messageId",
dataSource: messagesData
});
</script>
In this article