This Question is Assumed Answered

1 "correct" answer available (5 pts) 15 "helpful" answers available (3 pts)
2 Replies Last post: May 10, 2008 6:00 AM by RMH

How to select/access the target node of tree?

May 9, 2008 3:52 AM

Click to view RajivGu's profile Level 1 RajivGu 15 posts since
Apr 2, 2008

Hi,

I am creating a tree.I want drag and drop functionality of node to it.If I am droping a selected node over the target node it should get append to it.

In above scenario I have written a code which can drag a selected node and drop over the target node,but droped node is not getting appended to the

target node reason being I am not able to access or identify the target node.How to get the access to target node and append the droped node to it.

thanks

Rajiv

Click to view Kamal's profile Curl Kamal 46 posts since
Oct 17, 2007
1. Re: How to select/access the target node of tree? May 9, 2008 6:07 AM

Kindly refer to your earlier post "how to drag and drop a in Tree control?" http://developers.curl.com/message/1456#1456.

I have given an eample in it. Note that the example shows how to make a node draggable and also implements the Drop handler. The target node is the node that implements the DragOver and Drop. However in the example I am using a Frame as a Drop Target as TreeNode by itself is not a Graphic. There is no direct way of getting the TreeNode from a Frame, unless you write a Subclass of Frame and add a field to it that you can query later for a TreeNode. It will be somewhat similar to the draggable Tree nodes.

Click to view RMH's profile Curl RMH 29 posts since
Feb 17, 2008
2. Re: How to select/access the target node of tree? May 10, 2008 6:00 AM
Answered