messageWidthModeString(default: "standard")

Controls the width mode of messages. Supported values are "standard" and "full".

Example

<div id="chat"></div>
<script>
let messagesData = [
    {
        id: 1,
        text: "This message is displayed in full width mode, which makes it take up the entire available width of the chat container.",
        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: "Full width mode is useful when you want messages to use all available space.",
        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({
    messageWidthMode: "full",
    authorId: "user1",
    dataSource: messagesData
});
</script>
In this article
messageWidthMode
Not finding the help you need?
Contact Support