dataImageUrlField String (default: null)

Sets the field of the data item that provides the image URL of the TreeView nodes.

Example - specify custom image URL field

<div id="treeview"></div>
<script>
var items = [
  { text: "Mail", image: "https://demos.telerik.com/kendo-ui/content/web/treeview/mail.png" },
  { text: "Search", image: "https://demos.telerik.com/kendo-ui/content/web/treeview/search.png" }
];
$("#treeview").kendoTreeView({
  dataImageUrlField: "image",
  dataSource: items
});
</script>
In this article
Not finding the help you need? Improve this article