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.

Why new node is regenerated upon button click?

Thread ID:





94952 Jun 14,2010 08:45 AM Jun 16,2010 09:36 AM ASP.NET Web Forms (Classic) 1
Tags: DiagramWebControl
Jitul Chanar
Asked On June 14, 2010 08:45 AM


I am new and still exploring how to use the diagram best for my current project.

I have created a simple diagramwebcontrol with a node and a button.
What I did is, load the page and try to drag the node around and click the button to retrieve the node properties, such as x and y location. But I noticed, upon button clicked, new node will be generated based on how many times I drag the previous node.

What can I do to prevent this happen?
All I wanted to do is, to load the diagramwebcontrol with only one node.

Hope to hear from Syncfusion soon.


Jaffersathick B [Syncfusion]
Replied On June 16, 2010 09:36 AM

Hi Jitul Chanar,

Thank you for using syncfusion products.

I noticed that in you sample everytime when postback happens new node is created. So only when you are clicking on the button two nodes are created in the diagram.

I modified you sample by checking for an Ispostback and added the nodes in the pageload.




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.

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.