TreeLayout external drop

Hi. I’m using TreeLayout for my diagram. Everything seems work fine except that when i drag external object to the diagram it positions default left side. Could somebody suggest me how to handle this? I’m unsure to use “ExternalObjectsDropped
Thanks in advance

You are doing a layout after the drop and it’s the layout putting the node on the left… correct?

You could change the layout to not move the nodes that aren’t part of the tree yet.

Look at the DataSetDemo sample, in method AutoLayout. It creates a GoLayoutTreeNetwork, but then deletes notes
out of that network that aren’t visible. Change that code to delete nodes that don’t have any links.

if (node.Links.Count == 0) { … delete node … }