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

How to createdynamic nodes using Simple_EmployeeSymbol_CS class

Hi Team,

I want to know how to create nodes multiple with single node means,
I have one Plan for this plan i am getting multiple tasks are available for this how i need to take loop through all tasks direct to that particular plan by using Simple_EmployeeSymbol_CS class.

i am facing last node information only
 Simple_EmployeeSymbol_CS planNode = new Simple_EmployeeSymbol_CS();

                 Simple_EmployeeSymbol_CS taskNode = new Simple_EmployeeSymbol_CS();

                 Simple_EmployeeSymbol_CS stepNode = new Simple_EmployeeSymbol_CS();

foreach (DataRow row in dtPlan.Rows)

                     planNode.FillStyle.Color = Color.FromArgb(125, 162, 163);
                     planNode.LineStyle.LineColor = Color.BlanchedAlmond;
                     planNode.EmployeeName = row["PlanID"].ToString();
                     planNode.PinPoint = new PointF(600, 200);
                     planNode.EnableShading = true;

                     // Tasks

                     taskNode.FillStyle.Color = Color.FromArgb(125, 162, 163);
                     taskNode.LineStyle.LineColor = Color.BlanchedAlmond;
                     taskNode.EmployeeName = row["TaskName"].ToString();
                     taskNode.PinPoint = new PointF(600, 300);
                     taskNode.EnableShading = true;

                     // steps

                     DataTable dtSteps = GetRecoveryStepsData(Convert.ToInt32(row["TaskID"].ToString()));
                     int count= dtSteps.Rows.Count;

              // here i am getting multiple records  this i want show in dashboard (Step2, Step1, ...Like)
                     foreach (DataRow rowstep in dtSteps.Rows)

                         stepNode.FillStyle.Color = Color.FromArgb(125, 162, 163);
                         stepNode.LineStyle.LineColor = Color.BlanchedAlmond;
                         stepNode.EmployeeName = rowstep["StepName"].ToString();
                         stepNode.PinPoint = new PointF(iYCoodinates,380);
                         stepNode.EnableShading = true;

                         steoStatus.FillStyle.Color = Color.FromArgb(125, 162, 163);
                         steoStatus.LineStyle.LineColor = Color.BlanchedAlmond;
                         steoStatus.EmployeeName = rowstep["Status"].ToString();
                         steoStatus.PinPoint = new PointF(iYCoodinates,530);
                         steoStatus.EnableShading = true;

                        ConnectNodes(taskNode, stepNode);
                         ConnectNodes(steoStatus, stepNode);
                     ConnectNodes(procNode, planNode);
                     ConnectNodes(planNode, taskNode);
see this

Please reply me asap.

3 Replies

AK Ashok Kumar V Syncfusion Team November 14, 2013 07:19 AM UTC

Hi Surendra,

Thanks for using Syncfusion product.

Please refer the dashboard sample “Database Diagram” in “Use Case Diagram” category which demonstrates the method of adding multiple nodes to group node. You can also find the sample in the below location:

../../AppData\Local\Syncfusion\EssentialStudio\\Windows\Diagram.Windows\Samples\Use Case Diagram\Database Diagram

You can also run the samples through dashboard using the below steps:

Run the Dashboard->Windows Forms->Diagram->UseCaseDiagram->Database Diagram


Ashok Kumar.


SU Surendra November 26, 2013 06:25 AM UTC

Thanks Ashok Kumar,

For giving information. i used anotherway for this creating multiple nodes. 

AK Ashok Kumar V Syncfusion Team November 28, 2013 04:19 AM UTC

Hi Surendra,

Thanks for your update,

We are happy to hear that the issue has been solved. Please let us know if you require any further assistance on this.


Ashok Kumar,

Live Chat Icon For mobile
Up arrow icon