- Home
- Forum
- ASP.NET Web Forms (Classic)
- How to createdynamic nodes using Simple_EmployeeSymbol_CS class
How to createdynamic nodes using Simple_EmployeeSymbol_CS class
- Nov 13, 2013 12:16 PM UTC
- Nov 28, 2013 04:19 AM 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
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.
SIGN IN To post a reply.
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\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.
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.
Regards,
Ashok Kumar,
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
SU Surendra
- Nov 13, 2013 12:16 PM UTC
- Nov 28, 2013 04:19 AM UTC