Hi -
I am working on a project in which I have two FlyTreeViews on a page. One represents the source and the other represents the target. You can drag nodes from the source tree to the target tree to populate the target tree. PostBackOnDropAccept=\"True\" is set on the target so that the nodes of the target tree are reconstructed with a content template to contain ImageButtons. Each image button on the content template has its CommandArgument property set to .
All of this appears to work just fine... if I explore the FlyTreeView in debug mode in a QuickWatch window, the CommandArgument properties of all of the various nodes are set properly.
What doesn't appear to be working is:
The image buttons are used to move individual nodes up and down in the tree. The image button has an OnClick event defined on it. Then sender object which is passed as an argument to the OnClick event does not have the correct property. It contains a the value of another node in the tree. In addition, navigating from the sender upwards through its container to the FlyTreeNode in a QuickWatch window shows that the FlyTreeNode is actually NULL. It would appear that the wrong node is being sent to the event. I imagine the containing node is null because we have rebound the target tree on the postback to a new dataset. We have tried to explicitly call FlyTreeView.Nodes.Clear() prior to rebinding the target tree, but this has not had any effect.
Any help anyone could offer would be greatly appreciated. Our code is included in the following posts.
Thanks,
Paul