I'm trying to create an editor for a HierarchicalDataSource (remotely loaded as JSON).
I'm using `kendo.bind($('#target'),kendo.observable({data: new kendo.data.HierarchicalDataSource(<..config...>)});` to bind a hierarchical datasource with 3 levels of depth (customer -> location -> stores) [as an example]. For each level, I have a separate template for each type of child. I have a dojo demonstrating a static version.
I have several issues:
- Using a HierarchicalDataSource means that even if all the data is loaded at once, the tree doesn't fully populate.
- Declaring custom fields for child nodes doesn't auto-populate populated child nodes
- In the static `data: [...]` version, it is possible to load child collections by calling `datasource.data().at(i).load()`, but it must be called twice to display the template for the children
- In the remote-datasource version, load() doesn't load the data in the custom child collection ("locations"), though it does populate the dataitem.children collection.
- Binding the template to `data-bind="source: children"` results in an Invalid Template error in the static version
- Binding the same template from #5 to `data-bind="source: locations"` works, but error #3 occurs, and load() doesn't work when first called.