autoBindBoolean(default: true)

Controls whether the Chat will automatically fetch data from the data source when initialized.

When scrollMode is set to "endless" and the dataSource uses serverPaging, autoBind: false is not supported. Remote endless mode always starts with a Chat-managed latest-window request, and manual dataSource.read() and dataSource.fetch() calls are not supported for that mode.

Example

<div id="chat"></div>
<script>
let messagesData = [
    {
        id: 1,
        text: "Hello! How are you today?",
        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: "I'm doing great, thanks for asking!",
        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 dataSource = new kendo.data.DataSource({
    data: messagesData
});

let chat = $("#chat").kendoChat({
    autoBind: false,
    authorId: "user1",
    dataSource: dataSource
}).data("kendoChat");

setTimeout(function() {
    chat.dataSource.fetch();
}, 2000);
</script>
In this article
autoBind
Not finding the help you need?
Contact Support