I have created a kendo ui diagram control using drag drop & trying to save the controls to a data source and retrieve the diagrams when users comes back to site next time. I am new to kendo ui. Can someone share some sample code?
3 Answers, 1 is accepted
answered on 29 Oct 2015, 01:16 PM
You can persist the diagram by using dataSources for the shapes and the connections as demonstrated in this demo. The other option is to get the shapes and connections state using the save method and persist it and then apply the state the next time the page is loaded using the load method. I created an example that demonstrates this approach.
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
1. The first example is limited as it doesn't restore the x and y coordinates properly. Please could you expand as I really need to do this. I have managed to store the X and Y coordinates in my database when the objects are created and the graph is fine (image 2) but when I restore it I get the problem in image 3.
Please can you provide a response on how I fix this problem.