messages Object
Defines the text of the command buttons that are shown within the TreeList. Used primarily for localization.
Example - changing the messages
<div id="treeList"></div>
<script>
$("#treeList").kendoTreeList({
dataSource: [
{ id: 1, parentId: null, name: "Jane Doe", age: 22 },
{ id: 2, parentId: 1, name: "John Doe", age: 24 }
],
toolbar: [ "create", "pdf", "excel" ],
columns: [ "name", "age", { command: [ "edit", "destroy", "createchild" ] } ],
editable: true,
messages: {
noRows: "No records",
loading: "Fetching records...",
requestFailed: "Fetching failed.",
retry: "Reload",
commands: {
edit: "Modify",
update: "Save",
canceledit: "Discard",
create: "Add New",
createchild: "Add Child",
destroy: "Remove",
excel: "Export XSLX",
pdf: "Export to PDF"
}
}
});
</script>
Related Properties
- messages.commands
- messages.commands.canceledit
- messages.commands.create
- messages.commands.createchild
- messages.commands.destroy
- messages.commands.edit
- messages.commands.save
- messages.commands.search
- messages.commands.cancel
- messages.commands.excel
- messages.commands.pdf
- messages.commands.update
- messages.loading
- messages.noRows
- messages.requestFailed
- messages.retry