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>
    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"
In this article
Not finding the help you need? Improve this article