Hello Adrian,
Indeed, you are right. The elements are removed by index and an incorrect element will be removed when when inserting an additional element to the shapes group. You can avoid the problem by inserting the grid in root group:
In this case you will also need to scale the grid when the diagram is zoomed e.g.
Regards,
Daniel
Telerik
Indeed, you are right. The elements are removed by index and an incorrect element will be removed when when inserting an additional element to the shapes group. You can avoid the problem by inserting the grid in root group:
diagram.canvas.drawingElement.insertAt(grid, 0);zoomEnd: function(e) { this.canvas.drawingElement.children[0].transform(kendo.geometry.transform().scale(e.zoom));}Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!