widthString|Number

Sets the width of the Chat component.

Example

<div id="chat"></div>
<script>
let messagesData = [
    {
        id: 1,
        text: "This chat has a custom width of 800px. You can adjust the width to fit your layout requirements.",
        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: "The width setting helps with responsive design and integration into different page layouts.",
        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)
    }
];

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