We are using kendo.all.min.js v2013.3.1119
I call out my treeview like so: <ul data-kendo-role="treeview"
data-kendo-bind="source: dataSource, events: { select: onSelect }"
data-kendo-load-on-demand="true"
data-kendo-text-field="name"></ul>
self.kendoModel.dataSource = new kendo.data.HierarchicalDataSource({
transport: {
read: {
type: "GET",
dataType: "json",
contentType: "application/json",
url: apiUrlHelper.getPath('collections') + "/"
}
},
schema: {
model: {
id:"id",
children : "items",
hasChildren: true
}
}
});
When I first load the page, I get the roots of all items in the tree, and when I click on the expander the class changes on the html element, but I don't see any new requests to the server for additional information.
I've tried adding a custom transport and a parameter map, but it's not helping.
Here's a sample of the json used to populate the tree:
[{"id":192,"name":"a new collection","customerId":1,"createdBy":"admin","lastModifiedDate":null,"createdDate":"2013-12-17","isprivate":1,"managers":[],"items":[]},{"id":1986,"name":null,"customerId":1,"createdBy":"admin","lastModifiedDate":null,"createdDate":"2013-12-18","isprivate":1,"managers":[],"items":[]}]
I call out my treeview like so: <ul data-kendo-role="treeview"
data-kendo-bind="source: dataSource, events: { select: onSelect }"
data-kendo-load-on-demand="true"
data-kendo-text-field="name"></ul>
self.kendoModel.dataSource = new kendo.data.HierarchicalDataSource({
transport: {
read: {
type: "GET",
dataType: "json",
contentType: "application/json",
url: apiUrlHelper.getPath('collections') + "/"
}
},
schema: {
model: {
id:"id",
children : "items",
hasChildren: true
}
}
});
When I first load the page, I get the roots of all items in the tree, and when I click on the expander the class changes on the html element, but I don't see any new requests to the server for additional information.
I've tried adding a custom transport and a parameter map, but it's not helping.
Here's a sample of the json used to populate the tree:
[{"id":192,"name":"a new collection","customerId":1,"createdBy":"admin","lastModifiedDate":null,"createdDate":"2013-12-17","isprivate":1,"managers":[],"items":[]},{"id":1986,"name":null,"customerId":1,"createdBy":"admin","lastModifiedDate":null,"createdDate":"2013-12-18","isprivate":1,"managers":[],"items":[]}]