Hi,
I have implemented the kendo ui diagram using the HierarchicalDataSource. On loading the diagram, connections between the shapes is not happening(child items).Simple code tried in the dojo https://dojo.telerik.com/OYupExUq.
<div id="diagram"></div><script> var dataSource = new kendo.data.HierarchicalDataSource({ data: [{ "id":"1", "name": "Progress", "items": [ {"id":"2", "name": "Kendo UI", "items":[ {"id":"3","name": "TreeList"}, {"id":"4","name": "Chart"} ] }, {"id":"5","name": "NativeScript"} ] }], schema: { model: { children: "items" } } }); console.log(dataSource); $("#diagram").kendoDiagram({ dataSource: dataSource, layout: { type: "tree", subtype: "down" }, shapeDefaults: { type: "circle", content: { template: "#= name #" }, width: 80, height: 80, hover: { fill: "Orange" } }, connectionDefaults: { stroke: { color: "#979797", width: 1 }, type: "polyline", startCap: "FilledCircle", endCap: "ArrowEnd" } , connections:[ { from: "3", to: "5", content: { text: "Step 1" }, stroke: { color: "#33ccff" } } ] });</script>
Also posted in stack overflow and elaborate the issue.I have not come across any examples with connection datasouce using HierarchicalDataSource.
https://stackoverflow.com/questions/52500325/kendo-ui-diagram-hierarchicaldatasource-set-connection-datasource-issues.
From the attached image the requirement is to draw the connections between "TreeList" to "NativeScript".
Let me know if this is achievable.
Thanks
Dev