简体   繁体   中英

Kendo treelist display custom message for No records

I have created kendo-treelist in angularjs. Initial i am passing empty data so it is showing "No records to display". I want to customize this message how to do it. Thanks in Advance.

You should set the messages.noRows property

<div id="treeList"></div>
<script>
  $("#treeList").kendoTreeList({
    dataSource: [],
    columns: [ "name", "age" ],
    messages: {
      noRows: "No data"
    }
  });
</script>

API Documentation can be found here https://docs.telerik.com/kendo-ui/api/javascript/ui/treelist/configuration/messages.norows

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM