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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

AppendChildren problem

Thread ID:





61523 May 28,2007 02:50 PM UTC May 29,2007 12:07 PM UTC WinForms 3
Tags: Diagram
Jonathan Weizman
Asked On May 28, 2007 02:50 PM UTC


i use the latest version 5.1 and this code does not work :

NodeCollection k=page.GetNodes();
int u=this.dgrMyNotes.Model.AppendChildren(k,out i);

why the collection (which is corrrectly populated) is not appendended?

Meera Fathima [Syncfusion]
Replied On May 29, 2007 06:25 AM UTC

Hello John,

Regarding your query, could you please let me know the following details?

1. What that page.GetNodes() method does? Are you doing anything specific within this method?

2. And what is the "page" instance meant for? If possible could you please send me the code implementation of GetNodes() method if you are performing any specific functionality in this.

Also I have tested this case by creating a sample and it seems the Model.AppendChildren() method works fine. You can get the sample from the following link - http://websamples.syncfusion.com/samples/Diagram.Windows/F61523/main.htm

Sample Details :

1. Click on AddTextNode button to append the node collections which has three textnodes into the diagram model.

Please take a look at the sample and let me know if you have any more questions. If you still find any issue with this, could you please modify the provided sample to show the issue?

So that it will be easier for us to have a close look into the issue.

Thanks for your interest in syncfusion products.

Best Regards,

Jonathan Weizman
Replied On May 29, 2007 07:50 AM UTC

Thanks for the reply
However in my case it does not work. What's funy is that adding a collection of nodes to a layers does fail also...

NodeCollection nc=page.GetNodes();

nc is not null (page is class that encapsulate the nodes)
but myLayer.Nodes.count=0....

Meera Fathima [Syncfusion]
Replied On May 29, 2007 12:07 PM UTC

Hello John,

I have tested the case by adding nodes collection to the layers and also to the diagram model. and it is working fine. The nodes collection get added fine.

Also please make sure that the layer into which you add the nodes collection is enabled before adding the nodes to it since nodes can be added to the layer only if it is active/enabled.

I have attached the sample that I used for testing. Please download the sample from the following link - http://websamples.syncfusion.com/samples/Diagram.Windows/F61523_AddNodes/main.htm

Sample Details :

1. In this sample, the diagram model has a layer called "Node Layer" that has three text nodes.

2. The node collection that has three text nodes are added to both the layer(Node Layer) and to the diagram model.

Could you please modify the sample if you still have any problem with this.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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