Drag and drop with sorted tree models (2)

After the previous post, I improved a little bit the drag and drop example. This time, I added another three view at the right. Now you can drag a row in the right tree view to a node of the left tree view.

Another improvements is the support of multiple actions, I mean, the drag & drop can now move a row (as in the first version) or copy it (just press the Control key before dropping a row). It’s easy to see the different behaviours if you drag and drop nodes of the left tree view. On the other hand if you drag a row of the right tree view to a node of the left one, the row of the left will be removed except if you perform a copy (pressing Control button).

You can download it here.

Enjoy.

This entry was posted on Thursday, February 8th, 2007 at 7:37 pm and is filed under Hacking. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

  • February 2007
    M T W T F S S
    « Jan   Mar »
     1234
    567891011
    12131415161718
    19202122232425
    262728  

Be the first to leave a comment.

Leave a Reply