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.
Unfortunately, activation email could not send to your email. Please try again.

How to update Node, Connector, and Label at runtime?

To update Node:

Diagram’s clientside updateNode API allows the user to update the node at runtime by setting the node’s specific property.

JS

 

To update Connector:

Diagram’s clientside updateConnector API allows the user to update the connector at runtime by setting the connector specific property.

JS

 

To update Label:

Diagram’s clientside updateLabel API allows the user to update the label at runtime by setting the label style.

JS

Article ID: Published Date: Last Revised Date: Platform: Control:
5052 05/27/2015 05/27/2015 JavaScript ejDiagram
Did you find this information helpful?
Comments
Marek Nov 29, 2015
The updateNode function seem not to work inside the events, we needed to do the setTimeout workaround. Is there any better way? nodeCollectionChange: function (args) { var diagram = $("#diagram").ejDiagram("instance"); setTimeout(function () { var NodeConstraints = ej.datavisualization.Diagram.NodeConstraints & ~ConnectorConstraints.DragSourceEnd; diagram.updateNode(node.name, { width: 60, height: 60, constraints: NodeConstraints.Default & ~NodeConstraints.Rotate & ~NodeConstraints.Resize }); }, 1); }
Reply
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.