Kendo UI Treeview and XML

d6yroaba5

New Member
In Kendo UI i try to bind simple xml data to treeview widjet, with following code:\[code\]<script> $(document).ready(function () { var ds = new kendo.data.HierarchicalDataSource({ transport: { read: { url: "kendoTWData.xml", dataType: "xml" } }, schema : {type: "xml", data : '/root/doc', model : { fields: { nome: "nome/text()" } } } }); $("#treeview").kendoTreeView({ dataSource : ds, dataTextField: "nome" }); });</script>\[/code\]The xml file looks very simple (just for test purpose):\[code\]<?xml version="1.0" encoding="UTF-8" standalone="yes"?><root><doc><nome>fabio</nome></doc><doc><nome>mauro</nome></doc></root>\[/code\]But nothing appear... only "Loading... " message.The web console of firefox report:[11:57:03.558] TypeError: item.level is not a function @ kendo.web.min.js:11Can someone please point me to the right direction?Thanks in advance
 
Back
Top