PDA

View Full Version : tree - change parent if dropped on leaf



hornetnz
10 Apr 2013, 4:15 AM
I have a tree panel that has trees with two levels...groups and items under a group. Currently, if I drop an item from another panel onto the tree while over one of the current items, it drops the new item as a leaf/child of the hovered item. Instead, I need to tell it to drop it into the parent of the hovered item.



if (overModel != null) { //Set dropped node to drop into overModels parent }

slemmon
12 Apr 2013, 8:40 AM
This will likely require a bit of tinkering with the drag/drop operation.
What steps have you done so far?