Extra information in the node

Hello,

I am creating a process designer based on the example of diagrambuilder. I need to add other properties to the node object, how could associate more information to each node ?, such a description, a business unit, a leader.

Thank You

1 Reply

SG Shyam G Syncfusion Team February 26, 2015 11:27 AM UTC

Hi Rene

Thanks for using Syncfusion products.

We suggest you to use node  “AddInfo”  property  to achieve your requirement. Please refer the code snippet and sample below.

Code snippet:

Node node = new Node();

Dictionary<string, object> addinfo = new Dictionary<string, object>();

 addinfo.Add("description", "diagram");

addinfo.Add("businessunit", "sam");

addinfo.Add("leader","king");

node.AddInfo = addinfo;

Diagram1.Nodes.Add(node);

Sample:http://www.syncfusion.com/downloads/support/directtrac/118331/WebApplication22004851548.zip

Please refer the below knowledge base link which represents how to add custom properties to nodes and connectors.

Knowledgebase:http://www.syncfusion.com/kb/3051/how-to-add-custom-properties-to-nodes-and-connectors

Please let me know if any concerns.

Regards,

Shyam G



Loader.
Up arrow icon