Not able to position the nodes on the Diagram control

Though I set the postion of the Nodes using OffSetX and OffSetY, the nodes are always placed at the (0,0) position. What could be the cause for that?


1 Reply

RT Ramya Thirugnanam Syncfusion Team November 25, 2011 11:10 AM UTC

Hi Satish,

With regards to Not able to position the nodes on the Diagram control, we are unable to reproduce the issue. When Node’s OffsetX and OffsetY is changed at runtime(Dynamically) in the code behind, please call the InvalidateMeasure and InvalidateArrange Method of the DiagramPage after specifying the Offsetx and OffsetY. We have created a simple sample to represent this. Please refer to the attachment.

Details:
In that sample, the click made on the button updates the position of the Selected Node with values provided in the TextBox.

For more details about the Node’s position, please refer to the online help documentation.

Link: http://help.syncfusion.com/ug_94/User%20Interface/WPF/Diagram/index.htm and navigate to the Concepts and Features > Nodes-> Node Position

If the above solution does not meets your requirement please give my more details with a simple sample, so that we will provide necessary details.

Please let us know if you have any concerns.
Regards,
Ramya




NodePosition_a9a45e63.zip

Loader.
Up arrow icon