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

Add nodes and automatically link them

Write greetings from Venezuela, I want to do the following in a diagram, add a node to a node already created in the diagram, I mean do I select a node and right click and shows me the option to add a child node, the node should join automatically,
I'm using VB 2008 V 7.3.0.20 with essential study

I apologize for my bad English

I attached a picture to better understand

Edward Montiel



Imagen1_b168eed1.rar

13 Replies

AA Amsath Ali M Syncfusion Team March 10, 2011 12:52 PM UTC

Hi Edward,

Thanks for using Syncfusion products.

We have created a sample project to meet your requirement.

Please try the below sample and let me know your concerns.

DyanmicDiagramInVB-1476100822.zip

Regards,
Amsath ali.M




ED edward March 12, 2011 03:59 AM UTC

Greetings,
thanks, worked for what I wanted to achieve,
Now I pose the following problem:

My program is to take control of the hypothesis, which identifies with the colors:
validated = yellow
discarded = red
slope = gray
What I do is let me do the count of each type of scenario as an example:
total of 20 hypotheses were that:
10 were valid
5 were discarded
Five are pending

as a second problem, some hypothesis must have recommendations, I need an event that allows me to add recommendations to save and print a final report saying they belonged.


I hope you can help me

Edward Montiel



AA Amsath Ali M Syncfusion Team March 16, 2011 11:03 AM UTC

Hi Edward,

Thanks for using Syncfusion products.

Since we are not able to get your actual requirement in your query, could you please share us more information/screenshot which will be of more helpful for us to investigate further on this and provide a better solution to you?

Regards,
Amsath Ali M




ED edward March 22, 2011 08:50 PM UTC

Annex document which shows what I need

Regards,

Edward Montiel



Diagram_6c2b5b7a.rar


AA Amsath Ali M Syncfusion Team March 23, 2011 07:35 AM UTC

Hi Edward,

Thanks for the update.

We have created a simple sample to achieve your requirement.

Please try the below sample and let me know your concerns.

DynamicDiagram954070810.zip

Regards,
Amsath Ali.M




ED edward March 24, 2011 02:34 PM UTC

very grateful, Amsath Ali.M

the example that I received was very helpful and do what I wanted to achieve,
now could help me with the following:
I need to change when the hypotheses discarded automatically deleting the child nodes.
and please I have a problem with expand and collapse, the examples in the forum does not help me, I can not do with them.

Regards,
Edward Montiel



AA Amsath Ali M Syncfusion Team March 29, 2011 05:36 AM UTC

Hi Edward,

Sorry for the delay in getting back to you.

We have created simple samples to achieve your requirement.

Please try the below samples and let me know your concerns.

1.Deleting discarded nodes automatically.
DynamicDiagram143455485.zip

2.Expander/Collapse sample.
Expander1628247887.zip

Regards,
Amsath Ali.M




ED edward April 4, 2011 02:36 PM UTC

I do not really served to make my request, the example automatically delete the hypothesis fails to adapt to my program, and expand and collapse there is no other method than the one outlined in the example.
another point I need the code example in VB ..

I would appreciate if you help me ..

Regards,
Edward Montiel



AA Amsath Ali M Syncfusion Team April 5, 2011 10:50 AM UTC

Hi Edward,

Sorry for the inconvenience caused.

Since we are not able to get your actual requirement in your query “I need to change when the hypotheses discarded automatically deleting the child nodes”. Could you please share us more information/Screenshot which will be more helpful for us to provide a better solution to you?
We have created a simple sample for Expand/collapse in VB.

Please try the sample below and let us know if you have any other queries.
Expander in VB575492218.zip

Regards,
Amsath Ali. M





ED ed May 10, 2011 02:17 PM UTC

Greetings again,
I have this little problem I hope I can help I attached a file with an interactive video and the txt file the function I use to sort the nodes

Edward Montiel



Program_82305a2b.rar


AA Amsath Ali M Syncfusion Team May 13, 2011 01:05 PM UTC

Hi Edward,

Thanks for the update.

Since we are not able to get your actual requirement in your query. Could you please share us more information probably a sample which will be more helpful for us to provide a better solution to you?

Regards,
Amsath



ED ed May 13, 2011 02:12 PM UTC

Good morning,
an attempt to explain in the video to attach .. when I add a new sub-node in a sub called to order the diagram ... when you make this part of the node SELECTED automatically placed on the left side and lost the sequence that led ..
failed to see the video?
simplenete item is in "LayoutManager" when applied to me to explain this

as applied
Private Sub sort ()
Me.diagram.View.SelectionList.Clear ()
Dim manager As New OrgChartLayoutManager OrgChartLayoutManager = (Me.diagram.Model, RotateDirection.TopToBottom, 20, 50, LayoutType.Horizontal, 10)
Me.diagram.LayoutManager = manager
Me.diagram.LayoutManager.UpdateLayout (Nothing)
Me.diagram.UpdateView ()
End Sub

Regards,
Edward Montiel



AA Amsath Ali M Syncfusion Team May 20, 2011 06:05 AM UTC

Hi Edward,

Thanks for the update.

Regarding your query, “Nodes are not properly sorted while applying layouts”. The layout managers automatically arrange the parent nodes based on the child counts and this is the default behavior of the Layout managers.

Please let us know if you have any other concerns.

Regards,
Amsath Ali. M



Loader.
Live Chat Icon For mobile
Up arrow icon