Edit and View Mode

Hi,

I am trying to implements an Edit mode and View mode in my diagram.
I was looking in the documentes and I did not find something about it.

In Edit mode I want to-
1. add node/ connectors
2. change shapes positions and sizes.

In View mode I want to-
1. lock the diagram, so the user will be blocked from editing the diagram, he can only see the shapes.

I hope you can help me with this issue.

BR,
Eden

3 Replies 1 reply marked as answer

GG Gowtham Gunashekar Syncfusion Team March 23, 2021 01:29 PM UTC

Hi Eden, 
 
We have added sample to demonstrate how to switch between the edit mode and view mode by button click. We can add new node and connector dynamically using add API. We have added two button to add node and connector dynamically. To change the position of the node and change the size of the node , we have added another two button named as “update size” and “update position”. 
 
 
Regards, 
Gowtham 


Marked as answer

EZ Eden Zadikove March 23, 2021 01:37 PM UTC

Hi,

This is excatly what I need.
Thank you so much for your help :)


GG Gowtham Gunashekar Syncfusion Team March 24, 2021 02:40 PM UTC

Hi Eden,  
 
Please let us know whether you need any further assistance on this. 
 
Regards  
Gowtham

Loader.
Up arrow icon