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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add custom properties to nodes and connectors?

Platform: JavaScript |
Control: ejDiagram |
Published Date: December 19, 2014 |
Last Revised Date: May 19, 2015

Custom Properties

Custom properties feature allows you to add data additionally to the Node and LineConnector.

JavaScript:

 In JavaScript, you can add the custom properties directly into the node object.

JS

 

EJMVC

In MVC, custom properties can be added to the nodes and connectors by using the addInfo properties of nodes and connector. AddInfo is defined as a dictionary and custom properties are added as a key value pair. This dictionary object can be retrieved in the client side.

CONTROLLER

 

CSHTML

 

EJWEB

In EJWEB, you can add the custom properties to the nodes and connectors by using addInfo properties of nodes and connector. AddInfo is defined as a dictionary and custom properties are added as a key value pair. This dictionary object can be retrieved in the client side.

ASPX.CS

ASPX

 

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon