We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Change ids when a diagram is loaded with loadDiagram

Hello Team,

what is the correct way to change the ids of the connectors and nodes from the getNodeDefaults properties and

getConnectorDefaults when you load a diagram from a string (JSON.stringify) using the loadDiagram() method?.

1 Reply

BM Balasubramanian Manikandan Syncfusion Team January 6, 2023 10:44 AM UTC

We should not change the diagram element id dynamically and it is unique. If you need to add dynamic id, you can maintain it in addInfo property initially and can change it dynamically. You can store custom information in addInfo property. Refer to the below mentioned documentation.



Live Chat Icon For mobile
Up arrow icon