fileActionsArray
Defines the collection of actions that will be rendered in the context menu for file attachments. Each action represents an operation that users can perform on files (download, delete, preview, etc.).
Example
<div id="chat"></div>
<script>
let messagesData = [
{
id: 1,
text: "Here's the document you requested:",
authorId: "user1",
authorName: "John Doe",
authorImageUrl: "https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg",
files: [{ name: "report.pdf", size: 245760, extension: "pdf" }],
timestamp: new Date(2026, 0, 1, 9, 0)
},
{
id: 2,
text: "Thanks! I'll review it.",
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({
fileActions: [
{ name: "download", text: "Download", icon: "download" },
{ name: "delete", text: "Delete", icon: "trash" },
{ name: "preview", text: "Preview", icon: "eye" }
],
authorId: "user2",
dataSource: messagesData
});
</script>
In this article