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.

DragDrop of diagram

Thread ID:

Created:

Updated:

Platform:

Replies:

47731 Aug 10,2006 04:12 PM Aug 22,2006 09:51 AM Windows Forms 5
loading
Tags: Diagram
Truman Lackey
Asked On August 10, 2006 04:12 PM

I have a tree view with custom nodes that have a diagram as a property. I am using this as a template of sorts. I am able to drag this template onto an open diagram but have ran into a couple of issues that I would like some input on. I treid doing a copy/paste to a specific location but the links are getting linked or not to the wrong ports when the pasted nodes are moved to the new location. I have a version mostly working. I go through all the nodes and links and clone/copy them to the correct location on the diagram and try to link them correctly. I was using getportat to find ports but If two ports are close togethor the code may get the wrong port. Has anyone faced this situation of trying to drag/drop a diagram onto a different diagram? If not any input on how to handle this would be appreciated.

Truman

Administrator [Syncfusion]
Replied On August 11, 2006 09:37 AM

Hi Truman,

Thank you for your informations.

But I was not able to get your points in clear.Could you please elaborate the issue with some more details or if possible please post us a sample that reproduces the issue so that we can have a closer look into the issue to get it resolved at the earliest?. Also, please try if it is possible to reproduce the issue in any of the Diagram samples.

Thank you for your continued support to Syncfusion products.

Thanks & Regards,
Ramya.

Truman Lackey
Replied On August 15, 2006 04:03 PM

I am mainly looking for input on how this could be implemented differently. I really can not provide an example without providing the entire application and that is not feasible at this time. What I am doing is loading a treeview with nodes that have diagrams attached to them. These diagram templates can be dragged onto an open diagram. What I am trying to determine is the best and fastest as in speed way to do this. I use getportat to try to find the correct port to attach links with, but if the diagram already has a port in proximity to the port I am actually looking for it will somethimes return it, which is actually my problem in the way I implemented my code. I guess a way of thinking about this would be to do a diagram import into an already open diagram at a given point. Anyone have any thougts on this?

Administrator [Syncfusion]
Replied On August 18, 2006 12:11 AM

Hi Truman,

My apologies for the delay in getting back to you.

I have attached a sample with this post.In this sample a new DiagramForm appears as we dragdrop a treenode over the diagram of MainForm.You can add nodes to the child forms and create links between the nodes.Also, I was able to copy /paste the connected symbols with links being created between appropriate ports correctly.Kindly,refer the sample.

If I am wrong in getting your requirement could you please let me know about it.If possible please alter the sample to reproduce the issue your are facing with.

Thank you for your patience.

Thanks & Regards,
Ramya.

DropDiagram.zip

Truman Lackey
Replied On August 18, 2006 08:07 PM

Shows a diagram being dropped onto another diagram from a treenode. Using copy/paste show links getting drawn wrong on move of the diagram to its new paste location. test.edd is diagram being dropped. It is also located in the bin/debug folder. Using 4.1.0.62.

DropDiagram0.zip

Administrator [Syncfusion]
Replied On August 22, 2006 09:51 AM

Hi Truman,

My apologies for the delay in getting back to you.

I was able to reproduce the condition you have mentioned here.We have logged a QA Report of ID #475 in regard to this issue.You can check the status of the report using our Web Based Tracking System - http://www.syncfusion.com/support/issues/diagram/Default.aspx?ToDo=view&questId=475.Thanks for bringing this issue to our attention.

Thanks & Regards,
Ramya.

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.

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.

;