![](/img/trans.png)
[英]Why Kendo TreeList DataSourceTransport with custom read method written in Typescript does go wild?
[英]Kendo treelist display custom message for No records
我在 angularjs 中創建了 kendo-treelist。 最初我傳遞的是空數據,所以它顯示“沒有要顯示的記錄”。 我想自定義此消息的方法。 提前致謝。
您應該設置messages.noRows
屬性
<div id="treeList"></div>
<script>
$("#treeList").kendoTreeList({
dataSource: [],
columns: [ "name", "age" ],
messages: {
noRows: "No data"
}
});
</script>
API 文檔可以在這里找到https://docs.telerik.com/kendo-ui/api/javascript/ui/treelist/configuration/messages.norows
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.