Example of Serialization in ASP.NET MVC Diagram Control
This sample visualizes building diagrams interactively and editing the saved diagrams. Symbol Palette is used to easily build diagrams.
In this example, you can drag and drop the shapes and connectors from symbol palette to build diagrams. Also you can save the diagram as text files and can edit the pre-saved diagrams. You can use the saveDiagram method to save the diagram as string. You can use the loadDiagram method to load the diagram from a string. In this example, context menu and undo redo features are enabled.
The uploader API control is used to load the JSON data into a diagram asynchronously. Define the properties
saveUrl
, which will receive the uploaded files and save them on the server, and removeUrl
,
which will receive the file information and handle the removal of files from the server.