Why new node is regenerated upon button click?

Hi,

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.




WebApplication1_19a973a3.zip

1 Reply

JB Jaffersathick B Syncfusion Team June 16, 2010 01:36 PM UTC

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.


Regards,
Jaffer.B



WebApplication1_83155425.zip

Loader.
Up arrow icon