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

Doesn''t insert nodes

Thread ID:

Created:

Updated:

Platform:

Replies:

97475 Nov 30,2010 08:07 PM UTC Dec 2,2010 07:40 AM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: DiagramWebControl
Edward
Asked On November 30, 2010 08:07 PM UTC

Hi,

I'm drawing a series of nodes with the following code:

for (int i = 0; i < LogicNodes.Count; i++)
AppendNodeToDocument(LogicNodes[i]);
--------------------------------------------------
private void AppendNodeToDocument(WorkFlowNode myLogicNode)
{
RectangleF rectangule = new RectangleF(dxNode.Rectangules.Location.X, dxNode.Rectangules.Location.Y, 220, alto);

RichTextNode myGraphicNode = new RichTextNode("", rectangule);
myGraphicNode.Name = Name;
myGraphicNode.EnableCentralPort = true;
dwfDiagrama.Model.AppendChild(myGraphicNode);
}

but to add the node to node graph

dwfDiagrama.Model.AppendChild(myGraphicNode);

is not inserted, and does not run any error



Pandi Murugan A [Syncfusion]
Replied On December 1, 2010 08:43 AM UTC

Hi Edward,

Thanks for using Syncfusion products.

The Diagram Node has a property called 'PinPoint' to position it on the diagram. We suggest you to use this property to positioning your nodes on the diagram. Please refer the below code snippet.

[C#]
RectangleF rect = new RectangleF(0, 0, 100, 100);
RichTextNode rtxNode = new RichTextNode("",rect);
rtxNode.Text = "My RichTextNode";
//Position the Node
rtxNode.PinPoint = new PointF(200, 200);
diagram1.Model.AppendChild(rtxNode);


Please let me know if you have any concerns.

Regards,
Pandi Murugan A





Edward
Replied On December 1, 2010 03:47 PM UTC

Hi Pandi,

I forgot to mention that only happens with some nodes of the series. I made the changes you suggested but the error persists.

I hope you can help me, thanks


Pandi Murugan A [Syncfusion]
Replied On December 2, 2010 07:40 AM UTC

Hi Edward,

Thanks for your update.

Could you please provide us the error details which you had which will be of more helpful for us to investigate further on this and provide a better solution to you?

Please let me know if you have any concerns.

Regards,
Pandi Murugan A


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

;