View Full Version : DD Tree Icon

10 Nov 2010, 7:23 AM

I'm trying to implement a drag and drop tree that allows user to drag from a grid on the left and drop it into the tree on the right. All the drag and drop functions are working fine. I only have one cosmetic issue that I'm not sure how to handle.

When dropping onto a leaf node on the tree, it shows 23253, where the icon indicates it is trying to do a reorder. Because I've customized it to add the record to the parent node instead, I also want the hover to show23254. Is there any way I can change the icon of the tip?


10 Nov 2010, 7:42 AM
You'll have to override Ext.tree.TreeDropZone.onNodeOver so it only returns x-tree-drag-append and not x-tree-drag-insert-above/below.

10 Nov 2010, 10:34 AM
Thanks Condor! It works great. Only change I had to make is to use x-tree-drop-ok-append instead of x-tree-drag-append.