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.
Syncfusion Feedback

How to createdynamic nodes using Simple_EmployeeSymbol_CS class

Thread ID:

Created:

Updated:

Platform:

Replies:

114331 Nov 13,2013 12:16 PM UTC Nov 28,2013 04:19 AM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: DiagramWebControl
Surendra
Asked On November 13, 2013 12:16 PM UTC

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;
                     this.DiagramWebControl1.Model.AppendChild(planNode);


                     // 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;
                     this.DiagramWebControl1.Model.AppendChild(taskNode);

                     // 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;
                         this.DiagramWebControl1.Model.AppendChild(stepNode);

                         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;
                         this.DiagramWebControl1.Model.AppendChild(steoStatus);

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

Please reply me asap.


Ashok Kumar V [Syncfusion]
Replied On 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\11.3.0.30\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

Regards,

Ashok Kumar.

 


Surendra
Replied On November 26, 2013 06:25 AM UTC

Thanks Ashok Kumar,

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


Ashok Kumar V [Syncfusion]
Replied On 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.

Regards,

Ashok Kumar,


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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

;